fabianmoronzirfas
1/12/2014 - 10:01 AM

Grid.pde

int count;
void setup(){
size(800,450);
background(0);
smooth();
}

void draw(){
  
  noStroke();
  fill(0,10);
  rect(0,0,width,height);
buildDots(mouseX,mouseY);


}

void buildDots(float x, float y){
  for(int w = 10; w < width;w+=25 ){
    for(int h = 10; h < height; h+=25){

    if((w > x -5 && w < x +5)&&(h > y -5 && h < y +5)){
    stroke(255,100);
    strokeWeight(random(23));
      point(w,h);
    }else{
    float aBit_W_Noise = random(-5,5);
    float aBit_H_Noise = random(-5,5);
    strokeWeight(0.1+random(1));
    stroke(255,100);

      point(w+aBit_W_Noise,h+aBit_H_Noise);
    }
    

    }
  
  
  }

}