Skip to content

7131/art

Repository files navigation

Siteswap Art

https://7131.github.io/art/

This service transforms siteswap patterns into graphics. A siteswap pattern is usually written as 3, for example, but is actually sequence of 3 3 3 ... infinitely long. The following transformations are applied to the i-th term ai of this infinite sequence. First, each i-th term is converted to polar coordinates (ri, θi) as follows:

r0 = 0, ri = ri-1 + C
θ0 = 0, θi = θi-1 + ai * D

Where C and D are constants. Then they are converted to rectangular coordinates.

xi = ri * cos θi
yi = ri * sin θi

Finally, they are plotted on the canvas and you can get the siteswap as a graphic.

Versions

Simplified version
You can only see changes in shape due to differences in the specified pattern. It is fixed at C = 1 and D = 10 degree.
Standard version
In addition to the pattern, C and D can be specified. However, the range is 0.1 ≤ C ≤ 10, 0 ≤ D ≤ 90.
Professional version
The range of values that can be specified for C and D is large. In addition, colors can be set and the drawing formula can be changed.