Paint.rectangle

From codeTank

Jump to: navigation, search

Contents

Description

paint.rectangle will draw a rectangle in a window. It must be used on a paint object, which is passed to the onpaint event when a window needs to be redrawn.

Arguments

sh: highlight: command not found

You need to specify a language like this: <source lang="html">...</source>

Supported languages for syntax highlighting:

(error loading support language list)

x, y, width, and height define the properties of the rectangle.

color is the border color, which can either be a normal color (generated using rgb), or it can be the value false, which means no border will be drawn. If no border color is provided, it will default to black.

fill is the color used to fill the rectangle. If no fill color is provided, then it will default to transparent, and the rectangle will not be filled.

thickness is the thickness (in pixels) of the border. If a border isn't drawn, then this parameter doesn't matter. If it isn't specified, it will default to 0, which means the border will be 1 pixel thick.

Returns

paint.rectangle doesn't return anything.

Example

sh: highlight: command not found

You need to specify a language like this: <source lang="html">...</source>

Supported languages for syntax highlighting:

(error loading support language list)

See Also

Personal tools