Anyone have Grey Color Gradient 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: Anyone have Grey Color Gradient colors? (
/showthread.php?tid=589550)
Anyone have Grey Color Gradient colors? -
LiamM - 20.09.2015
Hi guys,
I'm working on a script in which I have almost every colour possible in my script except for any sort of gradient colours, I'm looking for a grey colour gradient, one that is light grey, next dark, then darker, then darker, sort of gradient.
Does anyone have those? I can't proceed with this system until I have those!
Thank you very much in advance
Re: Anyone have Grey Color Gradient colors? -
Andre02 - 20.09.2015
http://www.perbang.dk/rgb/000000/
Re: Anyone have Grey Color Gradient colors? -
Vince - 20.09.2015
True gray is when all three components (red, green and blue) have the same value and you could as such produce 256 different shades of gray.
Re: Anyone have Grey Color Gradient colors? -
LiamM - 20.09.2015
Hi guys, thank you for the prompt response, I meant the 0x hex.. So I can use it as a #define COLOR_GRAD1 for example. I've never been able to get the 0x hex working correctly.
Re: Anyone have Grey Color Gradient colors? -
Andre02 - 20.09.2015
0x is the same thing as in the link i sent you above! but the last 2 characters/numbers are the opacity.
#000000 = 0x000000FF
0xRRGGBBOO
0x = #
R = Red
G = Green
B = Blue
O = Opacity
As an example for a dark grey you can put
0x111111FF
To get less Grey you can put 222222 and then 333333 and then 444444 and so on to lighter it.
Re: Anyone have Grey Color Gradient colors? -
LiamM - 22.09.2015
Quote:
Originally Posted by Andre02
0x is the same thing as in the link i sent you above! but the last 2 characters/numbers are the opacity.
#000000 = 0x000000FF
0xRRGGBBOO
0x = #
R = Red
G = Green
B = Blue
O = Opacity
As an example for a dark grey you can put
0x999999FF
To get less Grey you can put 888888 and then 777777 and then 666666 and so on.
|
Fantastic, you broke that down so well it made me think 'How did I not understand that?' haha! Thank you, dude. The system I was working on has now been completed thanks to your assistance. Rep +