curves abstract art generator
I generated a new set of pictures for my living-room today. This time I created an abstract art generator that creates random curves and draws circles that follow them, I also made it choose a base color at random and create the colors in the HSB colorspace depending on the size of the curve
Here is the processing sketch I used to generate the curves, in case you want to create your own
import processing.pdf.*;
float[] x = new float[16];
float[] y = new float[16];
float[] r = new float[16];
int bc = 0;
void setup() {
size(594, 840);
smooth();
reset();
noLoop();
}
void reset() {
for( int i=0; i<16; i++) {
x[i] = random(width-150) + 75;
y[i] = random(height-150) + 75;
r[i] = random(80) + 10;
}
r[13]=0;
r[14]=0;
r[15]=0;
bc = int(random(255));
}
void draw() {
beginRecord(PDF, "curve-####.pdf");
colorMode(HSB);
background(255);
stroke(0);
for( int i=0; i<12; i++) {
for( int j=0; j<80; j++) {
float t = j / 80.0;
float ex = curvePoint( x[i], x[i+1], x[i+2], x[i+3], t );
float ey = curvePoint( y[i], y[i+1], y[i+2], y[i+3], t );
float er = curvePoint( r[i], r[i+1], r[i+2], r[i+3], t );
fill((bc + map(er, 10, 80, 0, 80))%255, 255,255);
ellipse( ex, ey, er, er );
}
}
endRecord();
}
void keyPressed() {
reset();
redraw();
}
See also:
new Pictures for my Livingroom
processing lissajou generator
violet abstract art generator
sketch experiment 7 - osc events
nested cubes in processing
processing lissajou generator
violet abstract art generator
sketch experiment 7 - osc events
nested cubes in processing