Guest User

Untitled

a guest
Apr 7th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import graphics, sdl, sdl_image, colors
  2. import os, strutils
  3.  
  4. var surface: graphics.PSurface = newScreenSurface(640, 480)
  5. withEvents(surface, event):
  6. var x:int
  7. x=0
  8. while true:
  9. x++
  10. surface.drawCircle((x, 100), 60, colRed)
  11. SDL.UpdateRect(surface.s, 0, 0, 640, 480)
  12. sleep(50)
  13.  
  14. case event.kind
  15. of sdl.QUITEV:
  16. break
  17. else: nil
Add Comment
Please, Sign In to add comment