| superclass(es) | object |
| subclass(es) | - |
| description | The brush class can be used for creating brushes for drawing on a canvas. |
| see also | canvas |
A brush is used by a canvas instance to fill large areas,
like the area inside a rectangle. There are two kinds of brushes, a null brush and a solid
brush. A null brush is useful when the inside of rectangular area must not be filled. It
is not necessary to specify the width and height of a brush, a brush always has the same
dimensions. |
| func | A solid brush with the specified color is created, the variables R(ed), G(reen) and B(lue) determine the color of the brush |
| pre | The variables R, G and B must contain integers, and each value must be in the range [0, 255]. |
| post | A solid brush with the specified color was created. |
| func | Determine the color of the brush. |
| pre | TRUE. |
| post | The variables R(ed), G(reen) and B(lue) are assigned the values which describe the color of the brush. |
| func | Create a NULL brush. |
| pre | TRUE. |
| post | A NULL brush of the specified width was created. |
| func | Determine if the brush is a NULL brush or not. |
| pre | TRUE. |
| post | If the brush is a NULL brush then Output was assigned true, else it was assigned false. |