• fullscreen
  • sketch61712.pde
  • int counter = 0;
    
    float foo;
    
    float rectsize = 30;
    
    void setup() {
      size(400,400);
      smooth();
      noLoop();
      
    }
    
    void draw() {
      background(0);
      //foo = mouseX/10;
      translate(rectsize, rectsize);
      
      for(int j = 0; j <  9; j++) {
        pushMatrix();
    
        for(int e = 0; e <  9; e++) {
          int numb = e+j;
          color recColor = color(random(255),random(255),random(255),numb*20);
    
          fill(recColor);
          pushMatrix();
          //rotate(radians(numb));
          rect(0, 0, rectsize,rectsize, numb, numb);
          popMatrix(); 
          
          translate(0, rectsize + 10);
          //counter = counter + 1;
        }
        
        popMatrix();
        translate(10 + rectsize, 0);
        
    }
      
    }

    code

    tweaks (0)

    about this sketch

    This sketch is running in HTML5 using Processingjs.

    license

    advertisement

    melbo

    grid sketch

    Add to Faves Me Likey@!
    You must login/register to add this sketch to your favorites.

    You need to login/register to comment.