Jeremy bessoff.com Blog
Documenting art processes
Menu

Olifer Eliasson in Code May 11, 2016

Olifer in Code

Learning while() statements. My recreation of Olifer Eliasson’s,Thirteen purple to grey movie, 2010watercolor and pencil on paper

using Processing code.  The source is included below:
float i = 0;
void setup(){
size(400,300);
colorMode(HSB);
background(#d3d1d2);
rectMode(CENTER);
fill(#d1ccc8);
stroke(#cbc3c1);
rect(width/2, height/2, 250, 150);
}
void draw() {
stroke(195, 99 – i*13, 99, 100);
while (i < 13) {
fill(195, 99 – i*13, 99, 100);
ellipse(150 + i*12.5, 150, 100- i*8.5, 100 );
i = i + 1;
}
}
void keyPressed() {
if (key == ‘s’ || key ==’S’) {
save(“Olafur13.png”);
println(“Drawing_Saved”);
}
}
//coded by Jeremy Bessoff

 

Categories: Processing

Leave a Reply

Your email address will not be published. Required fields are marked *

17 − thirteen =