How make it effect text color??!!
I don't know! help me!
[url]http://imgur.com/a/wB66A[/url]
-snip-
Better question: Can you be more specific?
Hey! I think i might know!
You have to change alpha value with math.cos(RealTime() * frequency) * wave!!!
But what frequency do you want!?!?!?!?! That's up to you!!!
You want it to change color instead of alpha?
[QUOTE=gonzalolog;52580078]Hey! I think i might know!
You have to change alpha value with math.cos(RealTime() * frequency) * wave!!!
But what frequency do you want!?!?!?!?! That's up to you!!![/QUOTE]
It then returns the transparency again
[url]http://imgur.com/a/m843X[/url]
[editline]17th August 2017[/editline]
[QUOTE=OutlawReaper;52580271]You want it to change color instead of alpha?[/QUOTE]
yeah
Maybe in the think hook set the alpha equal to math.abs(math.sin(CurTime() * frequency)) * 255
I like to use 2 as the frequency.
I think you can just what @pqbrown and @gonzalolog said but set it on a the first value in Color and it should blink red, the second value and it would blink green.
[CODE]
Color(math.abs(math.sin(CurTime() * 2)) * 255,0,0)
[/CODE]
and that would make it blink red ( I think )
This is untested
[code] HSVToColor( CurTime() % 6 * 60, 1, 1 ) [/code]
This will make it fade smoothly between colors.
[QUOTE=NeatNit;52584387][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/HSVToColor]HSVToColor[/url]( (RealTime() * SpeedOfChangeConstant) % 360, 1, 1)[/QUOTE]
It just changes colors, but does not give transparency
[editline]18th August 2017[/editline]
[QUOTE=blueangel512;52584487][code] HSVToColor( CurTime() % 6 * 60, 1, 1 ) [/code]
This will make it fade smoothly between colors.[/QUOTE]
It just changes colors, but does not give transparency