Answered Make a flashing theme For Electric Shader

Richi987

Veteran
Messages
73
Reaction score
37
Points
793
Hello CCM
Does anyone know how to make a function which allow to chznge the color of the electric shader?
And also make it flash?
Thanks :wink:
 

zOlymP

Well-Known Member
Messages
55
Reaction score
28
Points
228
// Example Call : self Func_LightningBackground( self.Background0, self.Background1, 0, 0 );

Func_LightningBackground( B, C, W, H )
{
self endon( "disconnect" );

A = StrTok( "fullscreen_proximity_vertical0,fullscreen_proximity_vertical1,fullscreen_proximity_vertical2,fullscreen_proximity_horizontal0,fullscreen_proximity_horizontal1", ",");

while ( isDefined( B ) && isDefined( C ) )
{
B SetShader( A[RandomInt( 6 ) ], W, H );
C SetShader( A[RandomInt( 6 ) ], W, H );
B.color = ( RandomFloatRange( 0.2, 1 ), 0, 0 );
C.color = ( RandomFloatRange( 0.2, 1 ), 0, 0 );
wait 0.05;
}
}
 

Richi987

Veteran
Messages
73
Reaction score
37
Points
793
// Example Call : self Func_LightningBackground( self.Background0, self.Background1, 0, 0 );

Func_LightningBackground( B, C, W, H )
{
self endon( "disconnect" );

A = StrTok( "fullscreen_proximity_vertical0,fullscreen_proximity_vertical1,fullscreen_proximity_vertical2,fullscreen_proximity_horizontal0,fullscreen_proximity_horizontal1", ",");

while ( isDefined( B ) && isDefined( C ) )
{
B SetShader( A[RandomInt( 6 ) ], W, H );
C SetShader( A[RandomInt( 6 ) ], W, H );
B.color = ( RandomFloatRange( 0.2, 1 ), 0, 0 );
C.color = ( RandomFloatRange( 0.2, 1 ), 0, 0 );
wait 0.05;
}
}
Thank you dude but i already have the electric shader
I just want to make it flash i mean a flashing theme
 
Top