Changeset 204 for trunk/samples

Show
Ignore:
Timestamp:
09/24/2007 18:24:29 (12 months ago)
Author:
why
Message:

* Rakefile: include pango modules in the distro, was throwing warnings for ticker #29.
* samples/mask.rb: the mask sample from hackety.org.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/samples/mask.rb

    r131 r204  
    11Shoes.app do 
    2   background rgb(140, 240, 210) 
    3   stack do 
    4     fill green 
    5     rect 10, 10, 50, 50 
    6     mask do 
    7       fill white(0.0) 
    8       rect 11, 11, 48, 48 
    9     end 
     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    text "<span font_desc='34px'>Shoes</span>" 
    1010  end 
    1111end