An easy question, how to add a transparent background in a textdraw? - 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: An easy question, how to add a transparent background in a textdraw? (
/showthread.php?tid=265154)
An easy question, how to add a transparent background in a textdraw? -
CTCCoco - 29.06.2011
An easy question, how I can add a transparent background in a textdraw?
Thanks!
AW: An easy question, how to add a transparent background in a textdraw? -
Blowfish - 29.06.2011
Colors are expressed as RGBA (Red, Green, Blue, Alpha) in hexadecimal numbers in pawn.
So 0xFF008A00, which is some shade of purple, is:
Код:
Red: 0xFF = 255 = 100%
Green: 0x00 = 0 = 0%
Blue: 0x8A = 138 = ~54%
Alpha: 0x00 = 0 = 0%
The alpha channel is for transparency. If you set it to a higher value,
for example 0x80 (decimal: 128 ) it will have a transparency of about
50%.
So hexadecimal expression for a "half" transparent purple would be
something like this:
0xFF008A80
Respuesta: AW: An easy question, how to add a transparent background in a textdraw? -
CTCCoco - 29.06.2011
Quote:
Originally Posted by Blowfish
Colors are expressed as RGBA (Red, Green, Blue, Alpha) in hexadecimal numbers in pawn.
So 0xFF008A00, which is some shade of purple, is:
Red: 0xFF = 255 = 100%
Green: 0x00 = 0 = 0%
Blue: 0x8A = 138 = ~54%
Alpha: 0x00 = 0 = 0%
The alpha channel is for transparency. If you set it to a higher value,
for example 0x80 (decimal: 128 ) it will have a transparency of about
50%.
So hexadecimal expression for a "half" transparent purple would be
something like this:
0xFF008A80
|
Thanks men.