Turing Logo  

Designed for computer science instruction, Turing is simply the easiest, most fun, and most effective way of teaching programming concepts.


Quick Links
Home page of Holt Software Associates  | Home page of the Turing Programming Language, the fastest way to teach programming concepts  | Home page of Holt Software's Java products  | Home page of Ready to Program with Java(tm) Technology, a Java development environment designed for education  | Information about Holt Software's courses for teachers  | Information about how to contact Holt Software  | Information about how students can purchase Holt Software's books and software  | Information about how schools and bookstores can purchase Holt Software's books and software

What are the base 16 colours in Turing?


The base 16 colours (colours number 0 through 15), are predefined in Turing. You can refer to them by number, but preferably, you should use one of the predefined names. As well, there are some differences between the DOS environment (where output takes place on a black background) and the Macintosh/Microsoft Windows environment (where output takes place on a white background).

Here's a table of the colours with there names and their RGB values (used with RGB.SetColour). Those colours that are different between the two platforms are bold faced.

Colour
Number
Mac/Win
Colour Name
Mac/Win
RGB Value
DOS
Colour Name
Dos
RGB Value
0 white
colourbg
colorbg
[R=1.0,G=1.0,B=1.0] black
colourbg
colorbg
[R=0.0,G=0.0,B=0.0]
1 blue [R=0.0,G=0.0,B=0.67] blue [R=0.0,G=0.0,B=0.67]
2 green [R=0.0,G=0.67,B=0.0] green [R=0.0,G=0.67,B=0.0]
3 cyan [R=0.0,G=0.67,B=0.67] cyan [R=0.0,G=0.67,B=0.67]
4 red [R=0.67,G=0.0,B=0.0] red [R=0.67,G=0.0,B=0.0]
5 magenta
purple
[R=0.67,G=0.0,B=0.67] magenta
purple
[R=0.67,G=0.0,B=0.67]
6 brown [R=0.67,G=0.33,B=0.0] brown [R=0.67,G=0.33,B=0.0]
7 black
colourfg
colorfg
[R=0.0,G=0.0,B=0.0] white
colourfg
colorfg
[R=0.67,G=0.67,B=0.67]
8 grey
gray
brightwhite
[R=0.67,G=0.67,B=0.67] grey
gray
darkgrey
darkgray
[R=0.33,G=0.33,B=0.33]
9 brightblue [R=0.33,G=0.33,B=1.0] brightblue [R=0.33,G=0.33,B=1.0]
10 brightgreen [R=0.33,G=1.0,B=0.33] brightgreen [R=0.33,G=1.0,B=0.33]
11 brightcyan [R=0.33,G=1.0,B=1.0] brightcyan [R=0.33,G=1.0,B=1.0]
12 brightred [R=1.0,G=0.33,B=0.33] brightred [R=1.0,G=0.33,B=0.33]
13 brightmagenta
brightpurple
[R=1.0,G=0.33,B=1.0] brightmagenta
brightpurple
[R=1.0,G=0.33,B=1.0]
14 yellow [R=1.0,G=1.0,B=0.33] yellow [R=1.0,G=1.0,B=0.33]
15 darkgrey
darkgray
[R=0.33,G=0.33,B=0.33] brightwhite [R=1.0,G=1.0,B=1.0]

[ Turing Home ] * [ Top of Page ] * [ Feedback ]