<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
Here's a list of the colour character sets that are used in TurboForth for 32 column mode. Note that they differ from the colour set numbers in TI BASIC and TI Extended Basic. This is because TurboForth gives you access to all 256 characters of the ASCII character set, whereas TI BASIC and Extended Basic does not.
A useful list of colours is presented here. They are the same colour values as found on the Editor Assembler Quick Reference Card. To convert from TI BASIC or Extended Basic colours, simply subtract 1 from the BASIC colour value.
The colour values can also be used for the word SCREEN which sets the colour of the screen background. In 32 column mode (GMODE=1) just use the value from the table below and it will set the screen colour. Note: Character backgrounds should be set to transparent to allow screen colour to show through! In 40 column mode (GMODE=0) and 80 column mode (GMODE=2), the most significant nybble (4-bits) is the text colour, and the least significant nybble is the screen colour. So, for example, to set white text on black screen, in GMODE 0, simply use the hexadecimal value $F0. Example: 0 GMODE $F0 SCREEN
ASCII Colour Sets | Colour Values | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Article uploaded 17 July 2017
<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>