kytschBASIC

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

RGBTOHEX
RED, GREEN, BLUE
Requires arcade library

Converts an RGB colour to a hex colour.

Example

DEF hex$=RGBTOHEX(0,255,0)

LET hex$="color:"+hex$

PRINT "Green",,,,hex$

Output

Green

Parameters

Parameter Type Description
RED integer Red colour from 0 to 255
GREEN integer Green colour from 0 to 255
BLUE integer Blue colour from 0 to 255

See also