Skip to content

Latest commit

 

History

History
113 lines (91 loc) · 3.49 KB

GCIRCLE.org

File metadata and controls

113 lines (91 loc) · 3.49 KB

Top | Up (GRP) | < Previous (PAGE NAME) | Next (PAGE NAME) >

GCIRCLE

Draw a circle, arc, or sector.
http://kland.smilebasicsource.com/i/jipob.png

Syntax

GCIRCLE center_x%, center_y%, radius% [, color%]
GCIRCLE center_x%, center_y%, radius%, start_angle%, end_angle% [, sector_flag% [, color%]]
ParameterDescription
center_x%, center_y%Center position
radius%Radius. If 0, nothing is drawn.
color%Color
start_angle%, end_angle%Range of arc to draw, in degrees
sector_flag%If not 0, lines will be drawn from the center of the circle to the endpoints of the arc.

Arc is always drawn clockwise from start_angle% to end_angle%, measured from the X+ axis.

OutputDescription
color%blood coagulation

Examples

ACLS
A$ = "ayaya"
FOO A$

Possible Errors

ErrorCause
Illegal Function Callarg0% is unspecified, or arg2# is negative

Version Information

3.0.2

Fixed out of range error if radius was 0 1

3.1.0

Added arc drawing 2

3.2.0

Fixed bugs when drawing a circle outside the screen 3

3.2.1

Fixed problems with drawing arcs 4

3.5.2

SmileBASIC no longer freezes when drawing a circle with a very large radius 5

References

1 SmileBoom, “Fixes in Ver. 3.0.2 (January 7, 2015)” http://smilebasic.com/en/debug/archive/

2 SmileBoom, “Additions/Changes in Ver. 3.1.0 (March 4, 2015)” http://smilebasic.com/en/debug/archive/

3 SmileBoom, “Fixes in Ver. 3.2.0 (June 17, 2015)” http://smilebasic.com/en/debug/archive/

4 SmileBoom, “Fixes in Ver. 3.2.1 (August 5, 2015)” http://smilebasic.com/en/debug/archive/

5 SmileBoom, “Bug Fixes in Ver. 3.5.2 (June 24, 2017)” http://smilebasic.com/en/debug/archive/


Top | Up (GRP) | < Previous (PAGE NAME) | Next (PAGE NAME) >