yazdmich

Untitled

Jul 18th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. var i : array 0..1 of int
  2. i(0) := white
  3. i(1) := green % replace with different colour names
  4. for decreasing y : maxy..0
  5. for x : 0..maxx
  6. drawdot(x,y,i(Rand.Int(0,1)))
  7. end for
  8. end for
  9.  
  10. var oldPic : int
  11. oldPic := Pic.New (0, 0, maxx, maxy)
  12. var newPic : int
  13. % Create the new picture by blurring the old picture
  14. newPic := Pic.Blur (oldPic, 75)
  15. % Free the old picture so we don't run out of memory
  16. Pic.Free (oldPic)
  17. Pic.Draw (newPic, 0, 0, picCopy)
  18. delay (300)
  19. oldPic := newPic
Advertisement
Add Comment
Please, Sign In to add comment