Workbench User Guide : A. Environment Variables : How You Can Specify Color Tables
 
Share this page                  
How You Can Specify Color Tables
A Color Table file is a plain text file that contains lines of color definitions. The color definitions must be in a certain order and a certain format. There must be exactly 62 color definitions to redefine the OpenROAD colors. Lines beginning with blank, “*”, or the tab character are considered comments.
Each line consists of three numeric values from 0 to 255 separated by spaces or tabs that are the red, green, and blue values of the color respectively. The fourth string on the line is the name of the color.
For example, these entries are taken from the wdepth8.ctb file supplied with OpenROAD:
Red
Green
Blue
Resulting Color
255
0
0
Light red
0
255
0
Light green
0
0
255
Light blue
255
255
0
Light yellow
0
255
255
Light cyan
255
0
255
Light pink
128
64
0
Light brown
255
128
0
Light orange
128
0
255
Light purple
160
160
164
Light gray
The color definitions must be in the following order:
1. Light red
20. Gray
2. Light green
21. Pale red
3. Light blue
22. Pale green
4. Light yellow
23. Pale blue
5. Light cyan
24. Pale yellow
6. Light pink
25. Pale cyan
7. Light brown
26. Pale pink
8. Light orange
27. Pale brown
9. Light purple
28. Pale orange
10. Light gray
29. Pale purple
11. Red
30. Pale gray
12. Green
31. Custom 1
13. Blue
32. Custom 2
14. Yellow
33. Custom 3
15. Cyan
...
16. Pink
59. Custom 29
17. Brown
60. Custom 30
18. Orange
61. Black
19. Purple
62. White
In OpenROAD, the CC_FOREGROUND and CC_BACKGROUND colors are set using the values of the window text and window background as set in the Color applet of the Control Panel.