Stripes

This quick Processing Sketch was strongly inspired by the current Gerhard Richter exhibition "Stripes and Glass" at the Kunstmuseum Winterthur, Switzerland.










float stepSize = 20;
int r,g,b;
int opacity = 50;

void setup () {
background(240);
size(1440 , 720);
smooth();
}

void draw(){

for (int i = 0; i <= height; i++) {
float red = map(r+i, 1, 260, 1, 255);
float green = map((g+i), 1, 260, 1, 255);
float blue = map(b+i, 1, 260, 1, 255);
stroke(random(red), random(green), random(blue), opacity);
strokeWeight(stepSize);
strokeCap(SQUARE);
line(0, i+stepSize/2, width, i+stepSize/2);
}