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
GreenParameters
| 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 |