kytschBASIC

Put down that phone!
Please view me on real computer.

ARCF
X, Y, START ANGLE, END ANGLE, RADIUS, 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,20,310,140

	ARC 390,180,180,360,100
	LINE 340,181,340,230
	LINE 440,181,440,230
	ARC 350,230,360,180,20
	ARC 370,230,180,360,20
	ARC 390,230,360,180,20
	ARC 410,230,180,360,20
	ARC 430,230,360,180,20

	RGB 255,255,255
	CIRCLEF 385,170,20
	CIRCLEF 415,170,20

	RGB 0,0,0
	CIRCLEF 385,170,10
	CIRCLEF 415,170,10
BITMAP CLOSE

Output

Parameters

Parameter Type Description
XintegerX position
YintegerY position
START ANGLEintegerStart angle of the arc, can have negative values
END ANGLEintegerEnd angle of the arc, can have negative values
RADIUSintegerRadius of the arc
Optional
STYLEintegerPIE = 0 (default)
CHORD = 1
NOFILL = 2
EDGED = 4

See also