Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/samples/simple-mask.rb
blob: 875a55bd8d5d5ddd9bdf6e236f42c8ad7aeeb5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Shoes.app do
  background black

  stack :top => 0.4, :left => 0.2 do
    @stripes = stack

    mask do
      title "Shoes", :weight => "bold", :size => 82
    end
  end
  
  animate 10 do
    @stripes.clear do
      20.times do |i|
        strokewidth 4
        stroke rgb((0.0..0.5).rand, (0.0..1.0).rand, (0.0..0.3).rand)
        line 0, i * 5, 400, i * 8
      end
    end
  end
end