xxxxxxxxxx
// sin, cos, line, grayscale, abs, noLoop
// An abstract shape generated using one moving primative.
// No interaction.
float ang, ang2;
void setup() {
size(500, 500);
background(0);
strokeWeight(25);
strokeCap(ROUND);
}
void draw() {
ang += .01;
ang2 += .021;
stroke(abs(sin(frameCount * .021))* 255);
float a = width/2 + cos(ang) * 100;
float b = height/2 + sin(ang) * 100;
float x = a + cos(ang2) * 100;
float y = b + sin(ang2) * 100;
line(a, b, x, y);
if(frameCount > 6365) noLoop();
}