root / trunk / samples / mask.rb

Revision 205, 190 bytes (checked in by why, 10 months ago)

* shoes/ruby.c: ahh, ended up needing App.method_missing for anything that ends up getting added to Canvas or Shoes classes at runtime. perhaps could use method_added in the future. this gave me a chance to wrap up ts_funcall2 which means Shoes actually has a hack by the wonderful Guy Decoux!
* samples/mask.rb: using title now that the above is fixed.

Line 
1Shoes.app do
2  20.times do |i|
3    strokewidth 4
4    stroke rgb((0.0..0.5).rand, (0.0..1.0).rand, (0.0..0.3).rand)
5    line 0, i * 4, 400, i * 4
6  end
7
8  mask do
9    title "Shoes"
10  end
11end
Note: See TracBrowser for help on using the browser.