height

Returns the height of the display in pixels. Since the display is addressed from zero, the maximum displayable pixel number is one less than the height.

If an optional sprite or image argument is given, returns the height of the sprite or image.

Usage

    MAX_Y = height() - 1;
    image_height = height(image);
    sprite_height = height(sprite);