Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sw = 640
  2. sh = 480
  3.  
  4. 'Square thing
  5. startSize = 40
  6. r=0
  7. t=0
  8.  
  9. Graphics sw,sh
  10.  
  11. While Not KeyHit( KEY_ESCAPE )
  12.     Cls
  13.  
  14.     size = startSize + Sin(t*3)*startSize*0.5
  15.     r:+3
  16.     t:+1
  17.     SetHandle size/2,size/2
  18.     SetTransform r,1,1
  19.  
  20.     SetColor (0,0,0)
  21.     DrawRect (0,0,640,480)
  22.     SetColor (255,255,255)
  23.    
  24.     For x=0 To 12
  25.         For y=0 To 12
  26.             DrawRect (sw*x/12,sh*y/12,size,size)
  27.         Next
  28.     Next
  29.    
  30.     Flip
  31. Wend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement