Changeset 131 for trunk/samples

Show
Ignore:
Timestamp:
08/23/2007 01:13:28 (13 months ago)
Author:
why
Message:

* shoes/canvas.c: new mask method for creating masking layers. you give the mask a block, fill it with shapes and it applies the mask to the parent canvas, using only the alpha channels of the shapes.
* shoes/ruby.c: added a big pile of named colors to Shoes::COLORS and Canvas.method_missing will check that list. so white(0.5) gives a 50% transparent white.

Location:
trunk/samples
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/samples/bounce.rb

    r123 r131  
    88  animate(30) do 
    99    clear do 
    10       background rgb(102, 102, 102) 
     10      background greenyellow 
    1111      x += xspeed * xdir 
    1212      y += yspeed * ydir