SA-MP Forums Archive
How do i convert colors - 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)
+--- Thread: How do i convert colors (/showthread.php?tid=440128)



How do i convert colors - NicholasA - 28.05.2013

I forgot how to do this
when i take something from colorpicker.com
how do i convert it into samp color?

Thanks


Re: How do i convert colors - Finn707 - 28.05.2013

For example: #1B6DE0

pawn Код:
#define Blue 0x1B6DE0FF
Add '0x' in front of the hex code and 'FF' at the end of the hex.


Re: How do i convert colors - jordy.kiesebrink - 28.05.2013

actually FF is the transperecy value when you want a lower alpha you should edit that

Код:
0xRRGGBBAA.
RR is the red part of the color, GG the green and BB the blue. AA is the alpha value
and indeed 0x is for pawn colors in front of it