Changing colours on Picocalc!

Hey guys how do we change the colour of text?

The usual basic commands eg. COLOR 4 or CLR$(red) dont seem to work in my testing so far.

Any help would be much appreciated!

COLOR RGB(RED),RGB(BLACK) - red letters on black background

The main thing is that you have to specify the color as an RGB value. The easiest way is using the RGB function. Some colors have presets (like RED, BLACK - see the Pico Mite manual for those). Or you can specify the color by using RGB(red amount, green amount, blue amount) where the amounts are 0 to 255.

1 Like

That works! Thank you!

The only real gotcha is that the manual is incorrect:

The background is optional and if not specified will default to black.

The background is optional, but if not specified the background color is unchanged.

So if you wanted to do a reverse video effect. This won’t work:

COLOR RGB(BLACK),RGB(RED)
PRINT “Hello”;
COLOR RGB(RED)

Because the background color will stay red. You need to specify that you want the background color to return to black. ex:

COLOR RGB(BLACK),RGB(RED)
PRINT “Hello”;
COLOR RGB(RED), RGB(BLACK)

1 Like