Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

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

 

 

 

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software