kytschBASIC

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

ARCF
X, Y, START ANGLE, END ANGLE, RADIUS, STYLE (optional), ID (optional)

The ability to draw an filled arc on a bitmap and display it on screen as an image.

Example

SCREEN

	RGB 0, 0, 0

	BITMAP 0, 0, 640, 480

		RGB 255, 0, 0



		REM Noticing I'm using a variable here as they are supported by the args.

		DEF x% = 320

		ARCF x%, 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 Optional Type Description
X No integer or variable X position
Y No integer or variable Y position
RADIUS No integer or variable Radius of the arc
START ANGLE No integer or variable Start angle of the arc, can have negative values
END ANGLE No integer or variable End angle of the arc, can have negative values
STYLE Yes integer or variable PIE = 0 (default)
CHORD = 1
NOFILL = 2
EDGED = 4
ID Yes string or variable ID to help identify or style the ARCF

See also