Generative arcs

A little time (about ten minutes) with code can go a long way. Arcs are repeatedly drawn; on each iteration, the arc moves “forward” and makes a slight random rotation. Layering lines with low opacity often gives a nice effect. Click the images to see them with more detail.

ofPushMatrix();
    ofTranslate(posX, posY);
    ofRotateZ(angle);
    ofTranslate(-50, -50);
    ofCurve(200, 0-100, 0, 0, 0, 100, 200, 100+100);
ofPopMatrix();

angle += ofRandom(-10.0, 5.0);
posX += ofRandom(1.0, 3.0) * cos(angle * DEG_TO_RAD);
posY += ofRandom(1.0, 3.0) * sin(angle * DEG_TO_RAD);
評論