Author Topic: Colours  (Read 2708 times)

0 Members and 1 Guest are viewing this topic.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Colours
« on: June 20, 2011, 05:50:32 am »
Where can I get more colours?
[pawn]#define COLOR_GREY         0xAFAFAFAA
#define COLOR_GREEN         0x04A36BFF
#define COLOR_RED         0xAA3333AA
#define COLOR_YELLOW      0xFFFF00AA
#define COLOR_WHITE         0xFFFFFFAA[/pawn]
I'm beginning to feel like a Lag God, Lag God

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Colours
« Reply #1 on: June 20, 2011, 01:35:09 pm »
From the SA:MP wiki:
Quote
A chattext or player color looks like this 0xRRGGBBAA The RR is the red part of the color, the GG the green and the BB the blue. AA is the alphavalue. If you use FF there it will be displayed without transparency and if you put it to 00 it will be invisible.

The colours are in hexadecimal format, so RR is between 00 and FF. A-F represent numbers between 10 and 15. They can be combined to form something like 0F, F0, FF, or 00.

You can use this color picker to make colors:
http://www.developingwebs.net/tools/color.php

As the wiki says, the AA is an alpha value, so FF will (or should) make text completely opaque, and 00 will make it invisible. Add this to the end of the color you get from the color picker.
Do not PM me for support.




Offline Kar

  • Street Thug
  • *
  • Posts: 6
    • View Profile
Re: Colours
« Reply #2 on: June 20, 2011, 05:38:53 pm »
even easier, http://www.colorpicker.com/

now, all you need to do is add "0x" before it, then at the alpha channel at the end.

"FF" for pure solid.