Color Transparency
#14

Quote:
Originally Posted by JaKe Elite
View Post
Still gives out a black color.
With what exact values did you call the function (especially how much time)?

If I do a simple calculation (like 1250 ms passed of a 5000 ms fade) it outputs the correct color:

255 - (1250 / 5000 * 255) = 191.25 (rounded 191 = 0xBF)

0xFF33CC00 + 0xBF = 0xFF33CCBF which is 25% faded - which is correct.

So either you don't update the textdraw (re-show it after setting the color!) or time doesn't hold the correct value. Or something else I didn't see. Could you post your updated code if the bug still persists?
Reply


Messages In This Thread
Color Transparency - by JaKe Elite - 26.09.2017, 12:51
Re: Color Transparency - by Skream - 26.09.2017, 12:53
Re: Color Transparency - by JaKe Elite - 26.09.2017, 12:55
Re: Color Transparency - by GustavoKarasek - 26.09.2017, 12:55
Re: Color Transparency - by AbyssMorgan - 26.09.2017, 12:57
Re: Color Transparency - by Skream - 26.09.2017, 12:57
Re: Color Transparency - by JaKe Elite - 26.09.2017, 13:11
Re: Color Transparency - by OneDay - 26.09.2017, 13:18
Re: Color Transparency - by JaKe Elite - 26.09.2017, 13:25
Re: Color Transparency - by NaS - 26.09.2017, 13:54
Re: Color Transparency - by JaKe Elite - 26.09.2017, 14:16
Re: Color Transparency - by NaS - 26.09.2017, 15:00
Re: Color Transparency - by JaKe Elite - 27.09.2017, 05:13
Re: Color Transparency - by NaS - 27.09.2017, 07:15
Re: Color Transparency - by JaKe Elite - 27.09.2017, 11:18
Re: Color Transparency - by JaKe Elite - 27.09.2017, 11:37

Forum Jump:


Users browsing this thread: 1 Guest(s)