Sha256: 02c608dff6a02c2357babf9f9756ae0c1adf6aceb07a95f1d3161506d83e0db3

Contents?: true

Size: 513 Bytes

Versions: 15

Compression:

Stored size: 513 Bytes

Contents

#
# a translation from a processing example
# http://vormplus.be/weging/an-introduction-to-processing/
#
Shoes.app :width => 420, :height => 420, :resizable => false do
  rotation = -(Shoes::HALF_PI / 3)
  step = 20 

  background gray(240)
  stroke gray(127)
  cap :curve
  nofill

  10.times do |i|
    strokewidth i
    size = 200 + (step * i)
    shape do
      arc self.width / 2, self.height / 2,
          size, size,
          rotation * i, rotation * i + Shoes::TWO_PI - Shoes::HALF_PI
    end
  end
end

Version data entries

15 entries across 9 versions & 4 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/shoes-contrib/simple/simple-arc.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes-contrib/simple/simple-arc.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes-contrib/simple/simple-arc.rb
lacci-0.2.1 examples/legacy/not_checked/simple/arc.rb
lacci-0.2.1 examples/legacy/not_checked/shoes-dep-samples/simple-arc.rb
lacci-0.2.1 examples/legacy/not_checked/shoes-contrib/simple/simple-arc.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes-dep-samples/simple-arc.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes-contrib/simple/simple-arc.rb
scarpe-0.2.1 examples/legacy/not_checked/simple/arc.rb
scarpe-0.2.0 examples/legacy/not_checked/simple/arc.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes-dep-samples/simple-arc.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes-contrib/simple/simple-arc.rb
shoes-3.0.1 samples/simple-arc.rb
shoesgem-0.1514.0 shoes/samples/simple-arc.rb
shoesgem-0.1424.0 shoes/samples/simple-arc.rb