Paint.ellipse

From codeTank

Jump to: navigation, search

Contents

Description

paint.ellipse will draw an ellipse 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 ellipse. Think of these coordinates just like a paint.rectangle rectangle, but instead of a rectangle being drawn, an ellipse is drawn inside the same area.

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 ellipse. If no fill color is provided, then it will default to transparent, and the ellipse 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.ellipse 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