Sha256: 42403e9a78dd15ae5804b779c27ba9c1cb40c5b000a9eb58ddabc47e3ba37f3d

Contents?: true

Size: 460 Bytes

Versions: 6

Compression:

Stored size: 460 Bytes

Contents

#
# Example from juixe "Running with Shoes - Transform"
# http://juixe.com/techknow/index.php/2007/10/23/running-with-shoes-transform/
#
Shoes.app :width => 600, :height => 500 do
  # Move canvas to center of screen
  translate width/2, height/2
  animate(24) do
    clear do
      # Rotate one degree at each frame
      rotate 1
      # Scale the image up or down
      scale((0.8..1.2).rand)
      # draw triangle…
      star 10, 10, 7 
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/shoes-contrib/animation/rotating-star.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes-contrib/animation/rotating-star.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes-contrib/animation/rotating-star.rb
lacci-0.2.1 examples/legacy/not_checked/shoes-contrib/animation/rotating-star.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes-contrib/animation/rotating-star.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes-contrib/animation/rotating-star.rb