SA-MP Forums Archive
Color to color fade - 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: Color to color fade (/showthread.php?tid=444418)



Color to color fade - bogdyutzu - 16.06.2013

How can I make a color to color fade by a value?
I have a progress bar textdraw and I want to fade color from green to red.
Can someone help me?


Re: Color to color fade - OrMisicL - 16.06.2013

You set a timer that changes the color of a texdraw background from green to red, every function call of the timer decreases the green color (from 255 to 0) and increase the red (from 0 to 255), then u generate a color from these variables


Re: Color to color fade - bogdyutzu - 16.06.2013

@****** I will looking in your scripts.
@OrMisicL if you can write an exemple just to make an ideea.


Re: Color to color fade - OrMisicL - 16.06.2013

By the way, here is an old script called seiffade by Seif_
http://pastebin.com/RrhGPAhT