Changeset 35 for trunk/samples

Show
Ignore:
Timestamp:
08/02/2007 09:55:02 (13 months ago)
Author:
why
Message:

* shoes/ruby.c: store line width in the path.
* shoes/canvas.c: Canvas#clear.
* Rakefile: renamed external as deps.
* samples/rect.rb: messing with drawing and buttons together.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/samples/rect.rb

    r15 r35  
    11Shoes.app do 
    2   background "rgb(200, 210, 148)" 
    3   rotate(-45) 
    4   rect(0, 60, 40, 40) 
     2  20.times do 
     3    nostroke 
     4    fill rand(0.4) + 0.6, rand(0.1) + 0.9, rand(0.2) + 0.8, rand(0.4) + 0.1 
     5    r = rand(300) + 60 
     6    rect rand(100), rand(200), r, r 
     7  end 
     8  button "OK", :x => 300, :y => 400 do 
     9    quit 
     10  end 
    511end