PDA

View Full Version : Code color



ORDI
3rd May 2014, 19:24
hello everybody

i wanna know how it work the codes color:

( 0, 0, 0);

and what is the code for color purple?
because i want make a disco in the admin menu.
thx to help me
xfire: ordi37zk

someone can help me?

Loveboy
3rd May 2014, 20:18
Hello!
If you have the program Paint, then you can choose a color there.

There is for every color 0 - 255.

Here you can see the color purple:

701

Red: 135
Green: 16
Blue: 132

So now you have to divide it (255).

The code is now


(135/255, 16/255, 132/255)


Edit: or just do for purple:


(1, 0, 1)

RobsoN
3rd May 2014, 22:19
Same as Loveboy said, but you can get color easier from http://www.colorpicker.com/
You need to take the last 3 ones R, G , B .