ARCF
X, Y, RADIUS, START ANGLE, END ANGLE, STYLE
Requires arcade library
The ability to draw an filled arc on a bitmap and display it on screen as an image.
Example
INCLUDE arcade
RGB 0,0,0
BITMAP 0,0,640,480
RGB 255,0,0
ARCF 180,190,140,20,310,0
ARC 390,180,100,180,360
LINE 340,181,340,230
LINE 440,181,440,230
ARC 350,230,20,360,180
ARC 370,230,20,180,360
ARC 390,230,20,360,180
ARC 410,230,20,180,360
ARC 430,230,20,360,180
RGB 255,255,255
CIRCLEF 385,170,20
CIRCLEF 415,170,20
RGB 0,0,0
CIRCLEF 385,170,10
CIRCLEF 415,170,10
END BITMAP
Output
Parameters
Parameter | Type | Description |
---|---|---|
X | integer | X position |
Y | integer | Y position |
RADIUS | integer | Radius of the arc |
START ANGLE | integer | Start angle of the arc, can have negative values |
END ANGLE | integer | End angle of the arc, can have negative values |
Optional | ||
STYLE | integer | PIE = 0 (default) CHORD = 1 NOFILL = 2 EDGED = 4 |