Hey, i wanna know how can i find the colors of the huds, i don't know, i wanna change some colors of a hud and i don't know what is the numer of the colors, thank you
Hey, i wanna know how can i find the colors of the huds, i don't know, i wanna change some colors of a hud and i don't know what is the numer of the colors, thank you
FREE Scripts Thread http://i.imgur.com/lVU437K.png
It's RGB.
The format is 0xRRGGBB
0x000000
R = Red
G = Green
B = Blue
For example, full red = 0xFF0000
If you don't know HEX, F = 15
HEX is 16-base, where 10-15 are represented by letters.
0123456789ABCDEF (A = 10, B = 11 etc)
So counting to 50 would look like this:
0 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 31 32
(add a zero in front of the lonely ones when using in Lua, e.g. 0A as in 10: 0x0A0008)
FF represents the number we know as 255, which is the maximum number for a color.
Just like in school when you mix colors, for example red + blue will make purple.
Just like that, if you use here:
0xFF00FF
This is full red and full blue which makes purple. You can also use less red and more blue for example by writing e.g.
0xAA00FF
White color is 0xFFFFFF
Black color is 0x000000
Or for "color" function: color(98, 13, 17, 20)
This is color(r, g, b, opacity)
In this case though it's a number between 0-255.
So for white you would write color(255, 255, 255)
and for black color(0, 0, 0)
Red is
color(255, 0 0)
Blue is
color(0, 0, 255)
etc etc...
You can either play with those numbers or find an RGB/HEX color picker, like this one for example: http://www.colorpicker.com/
In that one you will get the HEX number above (just add 0x in front of it to make it work in the Lua script) and the 3 bottom values to the right of the picker box is the RGB values.
Last edited by Colandus; 01-27-2014 at 11:39 PM.
Regards,
Colandus
Great info @Colandus! I've also learned something new