The Latest

Feb 17, 2014
Feb 16, 2014 / 1 note
Feb 15, 2014 / 3 notes
Feb 9, 2014 / 5 notes
Dec 18, 2013 / 16 notes
Dec 7, 2013 / 3,633 notes
Dec 7, 2013 / 44 notes
Sep 20, 2013 / 25 notes
Digital Patterns 
Mar 7, 2013

Digital Patterns 

void setup(){
  size(600,600);
  background (0);
}
void smallSquares( float x, float y, float rectHeight, float rectWidth ){
  float i_num = 0;

  while (i_num < 600){
    float newRectHeight = rectHeight*random(5,10);
    float colorDecider = int(newRectHeight%4);

    if (colorDecider == 0){
      fill(90);
    } else if (colorDecider == 1){
      fill(150);
    } else if (colorDecider == 2){
      fill(200);
    } else {
      fill(255);
    }

    println (colorDecider); 
    //stroke(255);
    noStroke();
    rect(x + i_num, y,newRectHeight, rectWidth*random(10));
    i_num = i_num + 2;
  }

  
}

void squarePatternBuilder(){
  float i = 0;
  while (i < 100){
    translate(0,i);
    smallSquares(0,0,random(10,20),random(10,20));
    i++;
  }

}




void draw(){

  noLoop();
  squarePatternBuilder();
}
Mar 7, 2013 / 84 notes

void setup(){

  size(600,600);

  background (0);

}

void smallSquares( float x, float y, float rectHeight, float rectWidth ){

  float i_num = 0;

  while (i_num < 600){

    float newRectHeight = rectHeight*random(5,10);

    float colorDecider = int(newRectHeight%4);

    if (colorDecider == 0){

      fill(90);

    } else if (colorDecider == 1){

      fill(150);

    } else if (colorDecider == 2){

      fill(200);

    } else {

      fill(255);

    }

    println (colorDecider); 

    //stroke(255);

    noStroke();

    rect(x + i_num, y,newRectHeight, rectWidth*random(10));

    i_num = i_num + 2;

  }

  

}

void squarePatternBuilder(){

  float i = 0;

  while (i < 100){

    translate(0,i);

    smallSquares(0,0,random(10,20),random(10,20));

    i++;

  }

}

void draw(){

  noLoop();

  squarePatternBuilder();

}