Advertisement
Guest User

Untitled

a guest
Aug 12th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Shoes.app(:width => 300, :height => 400) do
  2. fill rgb(0, 0.6, 0.9, 0.1)
  3. stroke rgb(0, 0.6, 0.9)
  4. strokewidth 0.25
  5.  
  6. key = edit_line
  7. button "Check Key!" do
  8. if key == 1234 then
  9.  
  10. para "Welcome to the oval generator"
  11. button "Generate" do
  12. 100.times do
  13. oval(
  14. :left => (-5..self.width).rand,
  15. :top => (-5..self.height).rand,
  16. :radius => (25..50).rand
  17. )
  18.  
  19. end
  20. end
  21. end
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement