The Rectangle class

This class is used to draw filled rectangles on the sreen.

Objects of this class behave like sprites, which means you can use methods like move to animate them.

Properties

The Text class inherits all of the properties of the Sprite class.

Member functions

Method Description
(constructor) Create a Rectangle object
setSize Set the size of the rectangle
setColor Set the color of the rectangle

The Rectangle class inherits all of the methods of the Sprite class except defineSpriteSheet and setFrame.