Forum

> > CS2D > General > colour code
Forums overviewCS2D overviewGeneral overviewLog in to reply

English colour code

9 replies
To the start Previous 1 Next To the start

old colour code

mortyr22
User Off Offline

Quote
can you give me all colour codes and if you can size codes.

old Re: colour code

DC
Admin Off Offline

Quote
the color codes are simply RGB (rgb = red green blue) values.
use this page to get rgb values for a color http://www.colorschemer.com/online.html
(or a good graphic program of your choice)

the cs2d color code works this way:
© RRR GGG BBB
© = tells cs2d that the following 9 chars are a color code
rrr = 3 numbers for red (with leading zeros if <100)
ggg = 3 numbers for green (with leading zeros if <100)
bbb = 3 numbers for blue (with leading zeros if <100)

some examples:
©255000000 = red (r=255, g=0, b=0)
©000255000 = green (r=0, g=255, b=0)
©000000255 = blue (r=0, g=0, b=255)
©000000000 = black (r=0, g=0, b=0)
©255255255 = white (r=255, g=255, b=255)
©255255000 = yellow (r=255, g=255, b=0)
©255128000 = orange (r=255, g=128, b=0)

attention: color codes have to be at the beginning of a text/line! otherwise they are not going to work!
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview