Canvas_Arc

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Canvas Control > Canvas Control Commands >

Canvas_Arc

 

Description

 

Draw an arc in the selected canvas target

 

Syntax

 

n = Canvas_Arc(x1, y1, x2, y2, arcStart , arcEnd [, rgbClor] )

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

x1

Number

No

The upper left corner of the arc

y1

Number

No

The upper left corner of the arc

x2

Number

No

The lower right corner of the arc.

y2

Number

No

The lower right corner of the arc.

arcStart

Number

No

The starting angle of the arc, in radians, from 0 to 2*pi.

arcEnd

Number

No

The ending angle of the arc, in radians, from 0 to 2*pi radians.

rgbColor

Number

Yes

RGB color of the box edge.  If omitted (or -1), the edge color defaults to the current foreground color for the selected graphic window.

 

Remarks

 

Arcs are always drawn counter-clockwise from arcStart to arcEnd.

Compared with a 12-hour clock-face, 0 or 2*pi radians is at 3 o'clock, and 1*pi radians is at 9 o'clock.

 

Restrictions

 

See also

 

Examples