Advertisement
VerTical_Dev

BO2, LightningBackground

Feb 19th, 2017
890
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.97 KB | None | 0 0
  1. /*
  2.         __     __                _____   _                  _
  3.         \ \   / /   ___   _ __  |_   _| (_)   ___    __ _  | |
  4.          \ \ / /   / _ \ | '__|   | |   | |  / __|  / _` | | |
  5.           \ V /   |  __/ | |      | |   | | | (__  | (_| | | |
  6.            \_/     \___| |_|      |_|   |_|  \___|  \__,_| |_|
  7.            
  8.            //YouTube: VerTical C#
  9.  
  10. */
  11.  
  12. // Example Call : self Func_LightningBackground( self.Background0, self.Background1, 0, 0 );
  13.  
  14. Func_LightningBackground( B, C, W, H )
  15. {
  16.     self endon( "disconnect" );
  17.    
  18.     A = StrTok( "fullscreen_proximity_vertical0,fullscreen_proximity_vertical1,fullscreen_proximity_vertical2,fullscreen_proximity_horizontal0,fullscreen_proximity_horizontal1", ",");
  19.  
  20.     while ( isDefined( B ) && isDefined( C ) )
  21.     {
  22.         B SetShader( A[RandomInt( 6 ) ], W, H );
  23.         C SetShader( A[RandomInt( 6 ) ], W, H );
  24.         B.color = ( RandomFloatRange( 0.2, 1 ), 0, 0 );
  25.         C.color = ( RandomFloatRange( 0.2, 1 ), 0, 0 );
  26.         wait 0.05;
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement