how to make color more transparency
#1

RR - Two values for the red (Where FF is max, and 00 is the lowest).
GG - Two values for the green (Where FF is max, and 00 is the lowest).
BB - Two values for the blue (Where FF is max, and 00 is the lowest).
AA - Two values for the transparency (Where FF is max, and 00 is the lowest). <----------

i want to getplayercolor(playerid,variable)
and setplayercolor more transparency
how to do this please help me
sorry for my english . it's very fool
Reply
#2

If I had to guess...
pawn Код:
SetPlayerColor(playerid,GetPlayerColor(playerid)- (GetPlayerColor(playerid)%256));
Not tested
Reply
#3

You can use a RGBA to int converter function implemented to PAWN to make it easy for using colors with different opacity and easily adjust colors.
Reply
#4

yes, teoritically:
Код:
0xAE34EE22
where:
AE is the RED value
34 green
EE blue
and
22 is the transparency , 00 - invisible , 11 very transparent , FF - no transparency
Reply
#5

how to store hex color in variable ?
and please help me
if my color is 0xFF00011 (BLIGHT RED)
i want to make it to dark RED in a little dark
and opposite
i has dark red i want to make it bright red
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)