• fullscreen
  • circle_random.pde
  • void setup() {
      background(255);
      size(500, 500);
     
    }
    
    void draw() {
      for (int i=20; i<500; i+=10) {
        rectFunction(i, i);
      }
    
    //rectFunction(200, 100);
    }
    
    void rectFunction(int circw, int circy) {
      noFill();
      stroke (1, random(255), random(255), random(255));
      ellipse(mouseX, mouseY, circw, circy) ;
    }
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Samir Naimi

    circle_random

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

    noadol
    7 Aug 2012
    cool sketch!

    Few comments:

    1/If you're drawing ellipses, why not calling your function ellipseFunction?
    2/ stroke(r,g,b,alpha), 1 stands for almost black. If you want to work on you stroke weight,
    use strokeWeight(#); though the default stroke weight is 1
    You need to login/register to comment.