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

SCREEN

	RGB 0,0,0

	BITMAP 0,0,640,480

		RGB 255,0,0

		ARCF 180,190,20,310,140,0



		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

	END BITMAP

END SCREEN

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

See also