SA-MP Forums Archive
ARGB 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: ARGB Colors? (/showthread.php?tid=416187)



ARGB Colors? - Arnoo - 16.02.2013

Hey is there anny place I can find the colors for the SetObjectMaterialText thing?


Thanks.


Re: ARGB Colors? - [TC]XxJuggaloxX - 16.02.2013

There really isnt a place that I know of. However if you follow this, You can figure out how to convert it easily.

Quote:
Originally Posted by Amit_B
Посмотреть сообщение
ARGB Format

Colors we use in most of functions are defined as RGBA format colors. Its because when reading them as hexadecimal colors, we'll read them as 0xRRGGBBAA.
It means, that 0xFF0000FF will be red; R = red, G = green, B = blue and A = alpha, their values can be between 0 and 255. 00 is 0, and FF is 255. The meaning of 0xFF0000FF is 255 red, 0 green, 0 blue and 255 alpha (so the color will be visible).

Both the new functions requires ARGB format color, it means AARRGGBB. So a red color, that was 0xFF0000FF, will be now 0xFFFF0000. That's how you can turn the colors defined in your script into ARGB format colors for materials.



Re: ARGB Colors? - dusk - 16.02.2013

Use this color generator if you want some color.It's really easy that way


Re: ARGB Colors? - Arnoo - 16.02.2013

Thank you both.