blob: 6eaf28d35f6db5012fb5e96cac29c3337cd1503a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#
# 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
|