Changeset 36 for trunk/samples
- Timestamp:
- 08/02/2007 12:04:04 (13 months ago)
- Files:
-
- 1 modified
-
trunk/samples/rect.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/samples/rect.rb
r35 r36 1 Shoes.appdo1 rectangles = proc do 2 2 20.times do 3 3 nostroke 4 fill rand(0. 4) + 0.6, rand(0.1) + 0.9, rand(0.2) + 0.8, rand(0.4) + 0.14 fill rand(0.6) + 0.4, rand(0.1) + 0.9, rand(0.2) + 0.8, rand(0.4) + 0.1 5 5 r = rand(300) + 60 6 6 rect rand(100), rand(200), r, r 7 7 end 8 8 button "OK", :x => 300, :y => 400 do 9 quit 9 clear 10 append &rectangles 10 11 end 11 12 end 13 14 Shoes.app &rectangles
