0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
# No. | html color | official name | comma+space values | comma values | fbterm colors | CSS rgb() | C/C++ array |
---|---|---|---|---|---|---|---|
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 _ |
#000000 #0000aa #00aa00 #00aaaa #aa0000 #aa00aa #aa5500 #aaaaaa #555555 #5555ff #55ff55 #55ffff #ff5555 #ff55ff #ffff55 #ffffff _ |
black low blue low green low cyan low red low magenta brown light gray dark gray high blue high green high cyan high red high magenta yellow white _ |
0, 0, 0 0, 0, 170 0, 170, 0 0, 170, 170 170, 0, 0 170, 0, 170 170, 85, 0 170, 170, 170 85, 85, 85 85, 85, 255 85, 255, 85 85, 255, 255 255, 85, 85 255, 85, 255 255, 255, 85 255, 255, 255 _ |
0,0,0 0,0,170 0,170,0 0,170,170 170,0,0 170,0,170 170,85,0 170,170,170 85,85,85 85,85,255 85,255,85 85,255,255 255,85,85 255,85,255 255,255,85 255,255,255 _ |
0;0;0 0;0;170 0;170;0 0;170;170 170;0;0 170;0;170 170;85;0 170;170;170 85;85;85 85;85;255 85;255;85 85;255;255 255;85;85 255;85;255 255;255;85 255;255;255 _ |
rgb(0,0,0); rgb(0,0,170); rgb(0,170,0); rgb(0,170,170); rgb(170,0,0); rgb(170,0,170); rgb(170,85,0); rgb(170,170,170); rgb(85,85,85); rgb(85,85,255); rgb(85,255,85); rgb(85,255,255); rgb(255,85,85); rgb(255,85,255); rgb(255,255,85); rgb(255,255,255); _ |
char colors[][3] = { { 0, 0, 0 }, { 0, 0, 170 }, { 0, 170, 0 }, { 0, 170, 170 }, { 170, 0, 0 }, { 170, 0, 170 }, { 170, 85, 0 }, { 170, 170, 170 }, { 85, 85, 85 }, { 85, 85, 255 }, { 85, 255, 85 }, { 85, 255, 255 }, { 255, 85, 85 }, { 255, 85, 255 }, { 255, 255, 85 }, { 255, 255, 255 } }; _ |