sethwheelerphoto:

Sunrise Over Lake Michigan

sethwheelerphoto:

Sunrise Over Lake Michigan


clintonmckay:

Alright now this is actually getting somewhere. 
ArrayList points = new ArrayList(); color[] colors = new color[600]; class Point { float xpos, ypos; public Point (float x, float y) { this.xpos = x; this.ypos = y; } public Point setXpos(float x){ this.xpos = x; return this; } public Point setYpos(float y){ this.ypos = y; return this; } } void setup(){ size(600,600); strokeWeight(1); stroke(#000000); background(#ffffff); getStartingPoints(10); frameRate(10); } void draw(){ for(int i = 0; i < points.size()-1; i++){ stroke(colors[i]); fill(colors[i+1]); Point temp = getNewPoint(points.get(i)); points.get(i).setXpos(temp.xpos).setYpos(temp.ypos); } saveFrame(); } void getStartingPoints(int num){ int n = height/num; for(int i = 0; i < n; i++){ Point pusher = new Point(0, i * num); points.add(pusher); color colorPusher = color(random(255), random(255), random(255), n); colors[i] = colorPusher; } } Point getNewPoint(Point point){ float x = point.xpos; float y = point.ypos; boolean up = false; boolean down = false; if(returnChance(.2)){up = true;} if(returnChance(.2)){down = true;} if(up && down){ if(returnChance(.3)){down = false;} if(returnChance(.3)){up = false;} } if(!up && !down){x += 10;} else{x += 14;} if(up){y += 8;} if(down){y -= 8;} beginShape(); vertex(point.xpos, height); vertex(point.xpos, point.ypos); vertex(x, y); vertex(x, height); vertex(point.xpos, height); endShape(); Point output = new Point(x, y); return output; } boolean returnChance(float likelihood){ float randomer = random(1); if(randomer < likelihood){ return true; }else{ return false; } }

clintonmckay:

Alright now this is actually getting somewhere. 

ArrayList points = new ArrayList(); color[] colors = new color[600]; class Point { float xpos, ypos; public Point (float x, float y) { this.xpos = x; this.ypos = y; } public Point setXpos(float x){ this.xpos = x; return this; } public Point setYpos(float y){ this.ypos = y; return this; } } void setup(){ size(600,600); strokeWeight(1); stroke(#000000); background(#ffffff); getStartingPoints(10); frameRate(10); } void draw(){ for(int i = 0; i < points.size()-1; i++){ stroke(colors[i]); fill(colors[i+1]); Point temp = getNewPoint(points.get(i)); points.get(i).setXpos(temp.xpos).setYpos(temp.ypos); } saveFrame(); } void getStartingPoints(int num){ int n = height/num; for(int i = 0; i < n; i++){ Point pusher = new Point(0, i * num); points.add(pusher); color colorPusher = color(random(255), random(255), random(255), n); colors[i] = colorPusher; } } Point getNewPoint(Point point){ float x = point.xpos; float y = point.ypos; boolean up = false; boolean down = false; if(returnChance(.2)){up = true;} if(returnChance(.2)){down = true;} if(up && down){ if(returnChance(.3)){down = false;} if(returnChance(.3)){up = false;} } if(!up && !down){x += 10;} else{x += 14;} if(up){y += 8;} if(down){y -= 8;} beginShape(); vertex(point.xpos, height); vertex(point.xpos, point.ypos); vertex(x, y); vertex(x, height); vertex(point.xpos, height); endShape(); Point output = new Point(x, y); return output; } boolean returnChance(float likelihood){ float randomer = random(1); if(randomer < likelihood){ return true; }else{ return false; } }


d3lt4:

"Geometric #9" Art print

d3lt4:

"Geometric #9" Art print