INFINITE COLLAGES FROM NERDLAND
Hi Internet, how are you! Hope all is well. Copenhagen is great, thanks for asking :)
Question:
Whats better than random colorful shapes flashing at insane speeds? Nothing..that’s what. The INFINATE COLLAGE via Processing. When you have a programming language (yes I know it’s java you nerds).that can monitor distributed render slaves and cpu Processes… while still being able to output the sexiest info-grams ever, what more could you ask for?
Check out the infinite collage of color..boasting a whopping 60 updates a second (if your computer can handle it). A slowly randomly changing rgb color scheme, Geometry (cirles, triangles, number of elements, random amounts, and random scales creating a one of a kind cold hearted work of art for you and every person in china.
CLICK HERE TO BE MESMERIZED BY MINDLESS AUTOMATED VISUALS. (Works best in firefox and chrome, java required)
Messy sketchy Code below:
int firstPass = 0 ;
int masterX;
int masterY;
void setup() {
background(255);
size(1000, 800);
smooth();
int count = 5000;
int max_size = 20;
int min_diff = 2;
masterX = width;
masterY = height;
float x1 = 0, y1 = 0, x2 = 0, y2 = 0, x3= 0 , y3 = 0;
for (int i=0; i< count; i++){
x1 = random(width);
y1 = random(height);
x2 = x1+random(-1*max_size, max_size);
while (abs(x1-x2) x2 = x1+random(-1*max_size, max_size);
}
y2 = y1+random(-1*max_size, max_size);
while (abs(y1-y2) y2 = y1+random(-1*max_size, max_size);
}
x3 = x1+random(-1*max_size, max_size);
while (abs(x1-x3) x3 = x1+random(-1*max_size, max_size);
}
y3 = y1+random(-1*max_size, max_size);
while (abs(y1-y3) y3 = y1+random(-1*max_size, max_size);
}
random(max_size);
fill(random(255),random(255),random(255));
noStroke();
triangle(x1, y1, x2, y2, x3, y3);
}
}
void draw() {
colorful_triangles();
}
void mousePressed(){
masterX = round(random(width));
masterX = round(random(height));
}
void colorful_triangles(){
//background(round(random(255)), round(random(255)), round(random(255)));
smooth();
int count = 10;
int r_color2 = 0;
int r_color, g_color, b_color;
int b_color2 = 0;
int g_color2 = 0;
float max_size = random(5,250);
if (firstPass == 0){
r_color = round(random(255));
g_color = round(random(255));
b_color = round(random(255));
}
else{
r_color = r_color2;
g_color = g_color2;
b_color = b_color2;
firstPass = 1;
}
float min_diff = random(2,5);
float x1 = 0, y1 = 0, x2 = 0, y2 = 0, x3= 0 , y3 = 0;
for (int i=0; i< count; i++){ r_color2 = 0; b_color2 = 0; g_color2 = 0; float diffr = round(random(0,1)*random(1)); float diffg = round(random(0,1)*random(1)); float diffb = round(random(0,1)*random(1)); // println(diff); r_color2=round(r_color-diffr); g_color2=round(g_color-diffg); b_color2=round(b_color-diffb); while (abs(r_color2)>255){
b_color2 = abs(abs(r_color2) - 255);
}
while ( abs(g_color2)>255){
b_color2 = abs(abs(g_color2) - 255);
}
while ( abs(b_color2)>255){
b_color2 = abs(abs(b_color2) - 255);
}
// println(r_color2+ ", "+ g_color2+ ", "+ b_color2);
x1 = random(masterX);
y1 = random(masterY);
x2 = x1+random(-1*max_size, max_size);
while (abs(x1-x2) x2 = x1+random(-1*max_size, max_size);
}
y2 = y1+random(-1*max_size, max_size);
while (abs(y1-y2) y2 = y1+random(-1*max_size, max_size);
}
x3 = x1+random(-1*max_size, max_size);
while (abs(x1-x3) x3 = x1+random(-1*max_size, max_size);
}
y3 = y1+random(-1*max_size, max_size);
while (abs(y1-y3) y3 = y1+random(-1*max_size, max_size);
}
random(max_size);
fill(r_color2,g_color2,b_color2);
noStroke();
int wildcard = round(random(0, 1));
if (wildcard == 0){
triangle(x1, y1, x2, y2, x3, y3);
}
if (wildcard ==1){
ellipse(x1, y1, abs(x2-x1), abs(y2-y1));
}
}
}











