Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 740 Bytes

00510_mask.mdown

File metadata and controls

36 lines (26 loc) · 740 Bytes

mask

The use of a masking layer is described by Shoes' author _why in the folling article:

Cut Holes In Shoes And Get A Mask

# sample24.rb
Shoes.app :width => 160, :height => 80 do
  def mask_words
    strokewidth 4
    160.times do |i|
      stroke send COLORS.keys[rand COLORS.keys.length]
      line i * 4 - 50, 0, i * 4, 80
    end
    mask :margin => 4 do
      title strong 'Shoes'
    end
  end
  
  mask_words
  every 3 do
    clear{ mask_words }
  end
end

sample24.png

sample24.png

Policeman

The sample24.rb worked well with Shoes-0.r1263.