kytschBASIC

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

RGB
RED, GREEN, BLUE, TRANSPARENCY (optional)

Set an RGB colour.

Example

SCREEN

	RGB 0, 0, 0

	BITMAP 0, 0, 640, 480

		RGB 255 ,0, 0, 200

		CIRCLEF 320, 220, 220

		

		REM using a variables

		DEF transparency% = 150

		DEF x% = 320

		RGB 255, 0, 0, transparency%

		CIRCLEF x%, 220, 160



		RGB 255, 0, 0, 00

		CIRCLEF 320, 220, 100



		RGB 255, 0 ,0, 50

		CIRCLEF 320, 220, 40

	END BITMAP

END SCREEN

Output

Parameters

Parameter Optional Type Description
RED No integer or variable Red colour from 0 to 255
GREEN No integer or variable Green colour from 0 to 255
BLUE No integer or variable Blue colour from 0 to 255
TRANSPARENCY Yes integer or variable Set how much transparency is to be be applied to the colour. 0 being completely opaque to 255 being completely transparent. The default value is 0.

See also