kytschBASIC

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

BOXF
X1, Y1, X2, Y2, ID (optional)

The ability to draw a filled box 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% = 200

		BOXF x%, 220, 340, 340



		RGB 255, 0, 0, 90

		BOXF 240, 180, 380, 300



		RGB 255, 0, 0, 95

		BOXF 280, 140, 420, 260



		RGB 255, 0, 0, 98

		BOXF 320, 100, 460, 220



		RGB 255, 0, 0, 99

		BOXF 360, 60, 500, 180

	END BITMAP

END SCREEN

Output

Parameters

Parameter Optional Type Description
X1 No integer or variable X1 or the start X position
Y1 No integer or variable Y1 or the start Y position
X2 No integer or variable X2 or the end X position
Y2 No integer or variable Y2 or the end Y position
ID Yes string or variable ID to help identify or style the ARCF

See also