• fullscreen
  • _21_5_modulo_random.pde
  • void setup (){
      size(400, 400);
      background(165, 105, 150);
      smooth();
    
    int abstand = 10;
      int offset = 30;
       for(int x = 0; x < 10; x++){
         for(int y = 0 ; y < 10 ; y++){
           if(x % 2 == 0){
               abstand = ((int)random(1,4) ) * 10;
           }else{
               abstand = 10;
           }
           noStroke();
           ellipse(x * 35 + offset + abstand, y * 35 + offset, 10, 10);
         }
       } 
    }
    
    void draw(){}
    
    void mousePressed (){
      saveFrame("modulo+random.png");
    }
    

    code

    tweaks (0)

    about this sketch

    This sketch is running as Java applet, exported from Processing.

    license

    advertisement

    Sarah P

    _21_5_modulo_random

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

    You need to login/register to comment.