kytschBASIC

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

BITMAPTEXT
TEXT, SIZE (optional), ANGLE (optional), X (optional), Y (optional)

The ability to write text on a bitmap.

Example

SCREEN "the-traveller"

	WINDOW "intro"

		WINDOWBODY

			RGB 0, 0, 0

			BITMAP 0, 0, 800, 400

				RGB 255, 0, 0

				BITMAPFONT _ROOT + "/kytschi/fonts/Sixtyfour.ttf"

				BITMAPTEXT "The Traveller", 32, 0, 120, 150

			END BITMAP

		END WINDOWBODY

	END WINDOW

END SCREEN

Output

intro

Parameters

Parameter Optional Type Description
TEXT No string or variable Text to be written on the bitmap
SIZE Yes integer or variable Text size. It is in pixels and the default size is 15.
ANGLE Yes integer or variable Angle or rotation of the text. The default is 0.
X Yes integer or variable The horizontal position of the text. The default is 0.
Y Yes integer or variable The vertical position of the text. The default is 0.

See also