Continuous Loop Sketch
Published at Jan 1, 2023
A P5 sketch based on this creation by Koma Tebe
(f = 0),
(q = 200),
(draw = (r) => {
for (
f++ || createCanvas((W = 400), W),
background(0),
translate((w = 200), W),
stroke(W),
n = 1,
y = 0;
y < W;
y += 12
)
for (i = 0; i < TAU; i += PI / 16)
(Y = y + (f % 12)),
strokeWeight((W - Y) / 36 / n),
(n = 1 == n ? 2 : 1),
rotate(sin(Y / 64 - f / 16 + i) / w),
point(sin(i) * Y, cos(i) * Y);
});