Signup Now
Results 1 to 3 of 3

Thread: HUD Colors

  1. #1
    Free User madlife's Avatar
    Join Date
    Jan 2014
    Posts
    91
    Reputation
    9
    Rep Power
    0

    HUD Colors

    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

  2. #2
    Free User
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    117
    Reputation
    15
    Rep Power
    21
    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

  3. #3
    Banned
    Join Date
    Dec 2013
    Location
    Barcelona
    Posts
    924
    Reputation
    22
    Rep Power
    0
    Great info @Colandus! I've also learned something new

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •