Height of the sprite's current image in pixels. If no image or animation are set it's the height of the placeholder rectangle.
The default height is 100. All sprite properties can be both accessed and updated.
var sprite = createSprite(200,200); console.log(sprite.height); sprite.height = 50; console.log(sprite.height); drawSprites();
sprite.height
The height of the sprite.
sprite.scale
to resize a sprite and keep the height to width ratio constant.drawSprites()
is called.Found a bug in the documentation? Let us know at documentation@code.org