<<

Contents

Search

>>

 

CIRCLE

 

 

Function

 

 

Syntax:

CIRCLE(<Y-Position>,<Y-Position>,<Radius>,<Border Size>,<Fill>,<Red>,<Green>,<Blue>[,<Handle>])

 

<Y-Position>

= <NUM-EXPRESSION>

<Y-Position>

= <NUM-EXPRESSION>

<Radius>

= <NUM-EXPRESSION>

<Border Size>

= <NUM-EXPRESSION>

<Fill>

= <NUM-EXPRESSION>

<Red>

= <NUM-EXPRESSION>

<Green>

= <NUM-EXPRESSION>

<Blue>

= <NUM-EXPRESSION>

<Handle>

= <NUM-EXPRESSION>

 

 

Meaning:

CIRCLE draws a circle on the screen with the color <Red>,<Green>,<Blue>.

 

If <Red> < 0 or <Green> < 0 or <Blue> < 0, a circle previously drawn at the same position and with the same radius is deleted again.

 

<Y-Position> and <X-Position> specify the center of the circle.

 

<Radius> defines the radius of the circle and has to be specified as multiple of the row height.

 

<Border Size> defines the thickness of the border in pixel.

 

If <Fill> <> 0, the interior of the circle is filled with the color <Red>,<Green>,<Blue>.

 

<Handle> specifies in which window the circle is drawn. <Handle> can contain the window depth or the handle of a split window or a WINDOWCALL window. If the parameter <Handle> is missing, the circle is drawn in the current mask.

 

CIRCLE always returns 1.

 

Parameter:

Y-Position

Y-coordinate of the center of the circle

Y-Position

X-coordinate of the center of the circle

Radius

Radius as multiple of the row height

Border Size

Thickness of border in pixel

Fill

If <> 0, the interior of the circle is filled

Red

Red value

Green

Green value

Blue

Blue value

Handle

Window depth or handle of a split window or handle of a WINDOWCALL Window

 

Sample:

H% = CIRCLE(5.5,10,3.25,0,255,0,0,0)
/* A read circle is drawn in the main window at the position (5.5,10)

/* with a radius of 3.25 rows. The interior of the circle is not filled.

...

/* delete circle again
H% = CIRCLE(5.5,10,3.25,0,-1,-1,-1,0)

 

See also:

LPCIRCLE

DRAWLINE

DRAWRECT

POLYGON

FILLRECT