Guest User

Untitled

a guest
Oct 24th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. myGrid := PasteUpMorph new openInWorld.
  2. myGrid height: 1100;width:1100.
  3.  
  4. rnd := [(-500 to: 500) atRandom].
  5.  
  6. aRect := RectangleMorph new.
  7. myGrid addMorph: aRect.
  8. aRectb := RectangleMorph new.
  9. myGrid addMorph: aRectb.
  10. aRec := myGrid center.
  11.  
  12. [Transcript show: (Time millisecondsToRun:[
  13.     1 to:1000 do: [:i|
  14.         1 to: 1000 do: [:j|aRectb center: aRec +(rnd value@rnd value).aRect center: aRec +(rnd value@rnd value)]]]);cr] fork
Add Comment
Please, Sign In to add comment