Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shoes.app(:width => 300, :height => 400) do
- fill rgb(0, 0.6, 0.9, 0.1)
- stroke rgb(0, 0.6, 0.9)
- strokewidth 0.25
- key = edit_line
- button "Check Key!" do
- if key == 1234 then
- para "Welcome to the oval generator"
- button "Generate" do
- 100.times do
- oval(
- :left => (-5..self.width).rand,
- :top => (-5..self.height).rand,
- :radius => (25..50).rand
- )
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement