SinterPixels Demos Part 9: Circle Spiral
Here’s another example of a twirl kind of shape that is extremely easy to generate.

This image is just 50 circles. The trick to getting the spiral shape is to offset the position in both x and y by a cosine function as the circles get larger.
The color is set with an HSB color, also varying as the circles get larger. The script itself is only 12 lines ling:
on cos(x)
return run script "Math.cos(" & x & ")" in "JavaScript"
end cos
tell application "SinterPixels"
set doc1 to make new document with properties {height:400, width:400}
repeat with a from 1 to 50
set px to my cos(a + 1.57)
set py to my cos(a)
set hsbColor to {hue:a * 0.05, saturation:1.0, brightness:0.8}
make new circle at beginning of doc1 with properties {position:{2 * px, 2 * py}, radius:a * 6, color:hsbColor, fill color:clear, line width:4}
end repeat
end tell