• fullscreen
  • ColorBalls.pde
  • sketch_jul22a_OpenProcessingSecondWork.pde
  • class ColorBalls {
      
      float xpos;
      float ypos;
      float randSize;
      
      float showUpCounter = 0;
      
      ColorBalls (float _xpos, float _ypos, float _randSize) {
        
        xpos = _xpos;
        ypos = _ypos;
        randSize = _randSize;
        
      }
      
      void display() {
        fill(random(255),random(255),random(255),random(100));
        noStroke();
        ellipse(xpos,ypos,randSize,randSize);
      }
    }
    
    ColorBalls cb;
    
    float dis = 45;
    float radius = 5;
    float speed = 0.03;
    
    void setup() {
      size(400,400);
      background(235);
      smooth();
    }
    
    void draw() {
      for (float i = 0; i < width/30; i += 0.5) {
        for (float j = 0; j < height/30; j += 0.3) {
          cb = new ColorBalls(dis*i,dis*j,radius);
          cb.display(); 
        }
      }
      dis = dis + speed;
      radius = radius + speed;
    }
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Jeon Won-min

    my2ndArtwork

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

    repeat, circle, class...

    You need to login/register to comment.