<p>The functions .scaleX() and .scaleY() can be used to scale an object's x and y components. The functions can also be used to return and object's current scale. .scaleX() and .scaleY() take in one parameter, and object's desired scale.</p>
<pre><code>object.scaleX(10);
//scales 'object' in the x direction, with a factor of 10
var scale = object.scaleY();
//sets variable 'scale' to the y scale of 'object'</code></pre>
<h4>See Further:</h4>
<olclass="more">
<li>Meteors Part 2</li>
</ol>
</a>
</div>
<br>
<divclass="item"><!--done-->
<aname="wd">
<h3>.height() and .width()</h3>
<p>The functions .height() and .width() can set an object's dimensions. .width() sets and object's x dimension, while .height() sets an object's y dimension. The functions take in one parameter, and object's desired dimension. These functions can also return an object's current dimension.</p>
<pre><code>object.width(10);
//sets the width of 'object' to 10;
var height = object.height();
//sets variable 'height' to the height of 'object'</code></pre>