How to convert HEX to SAMP color ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to convert HEX to SAMP color ? (
/showthread.php?tid=91300)
How to convert HEX to SAMP color ? -
RaFsTar - 13.08.2009
Get a Hex Color from here:
http://caribbean-joe.net/joe/Noteboo...hex_colors.jpg
Example RED in hex: Add this in the begging : It will stay like this:
Then repeat the two last characters:And you will have a SAMP color from an HEX color:Conclusion: 0x +
HEX COLOR +
HEX COLOR LAST TWO CHARACTERS !
Cheers
Re: How to convert HEX to SAMP color ? -
kevinsoftware - 13.08.2009
hmm.. not rly..
the 2 last chars is for the bright i think. Correct me if i wrong.
Re: How to convert HEX to SAMP color ? -
RaFsTar - 13.08.2009
As you can see on the HEX COLORS table:
This is a flash red:
This is a flash +orange red ( + brightness ):
So the "Brightness" is here:
Re: How to convert HEX to SAMP color ? -
Weirdosport - 13.08.2009
Quote:
Originally Posted by RaFsTar
Then repeat the two last characters:
|
Kevin is right, this is wrong.
The last 2 characters are the Alpha channel, and they determine how opaque/transparent the colour will be. Setting them to 00 will make it transparent. Setting them to FF makes it opaque.
Re: How to convert HEX to SAMP color ? -
RaFsTar - 14.08.2009
Dude i just gave a way to convert the HEX COLORS to SAMP COLORS, if you think that's wrong on the SAMP COLORS, just try making that with one color !
Re: How to convert HEX to SAMP color ? -
Weirdosport - 14.08.2009
"Dude", I've been using SA-MP colours for quite a while now, you don't copy the Blue hexadecimal value for the Alpha channel, that's just silly.
0xRRGGBBAA - Correct
0xRRGGBBBB - Incorrect
Re: How to convert HEX to SAMP color ? -
RaFsTar - 14.08.2009
Ok this topic sucks, delete it !
Re: How to convert HEX to SAMP color ? -
StrickenKid - 14.08.2009
Or you can just use the hex to pawn color converter i made

(in my signature)
Re: How to convert HEX to SAMP color ? -
RaFsTar - 14.08.2009
yeah xD !
Sorry for my mistake, i thought it was adding the last characters !
Best Regards !
Re: How to convert HEX to SAMP color ? -
Xer0maR - 16.01.2011
so anyone have the converter?
Thanks!