• fullscreen
  • Circles.pde
  • //Rows of circles trying for rainbow colors as well
    
    smooth();
    size(300,300);
    background(0);
    
    //red circles
    fill(255,00,00);
    ellipse(25,25,50,50);
    ellipse(75,75,50,50);
    ellipse(125,125,50,50);
    ellipse(175,175,50,50);
    ellipse(225,225,50,50);
    ellipse(275,275,50,50);
    
    //orange circles
    fill(247,145,10);
    ellipse(75,25,50,50);
    ellipse(125,75,50,50);
    ellipse(175,125,50,50);
    ellipse(225,175,50,50);
    ellipse(275,225,50,50);
    ellipse(25,275,50,50);
    
    //yellow circles
    fill(247,247,10);
    ellipse(125,25,50,50);
    ellipse(175,75,50,50);
    ellipse(225,125,50,50);
    ellipse(275,175,50,50);
    ellipse(25,225,50,50);
    ellipse(75,275,50,50);
    
    //green circles
    fill(0,255,0);
    ellipse(175,25,50,50);
    ellipse(225,75,50,50);
    ellipse(275,125,50,50);
    ellipse(25,175,50,50);
    ellipse(75,225,50,50);
    ellipse(125,275,50,50);
    
    //blue circles
    fill(0,0,255);
    ellipse(225,25,50,50);
    ellipse(275,75,50,50);
    ellipse(25,125,50,50);
    ellipse(75,175,50,50);
    ellipse(125,225,50,50);
    ellipse(175,275,50,50);
    
    //violet circles
    fill(247,10,224);
    ellipse(275,25,50,50);
    ellipse(25,75,50,50);
    ellipse(75,125,50,50);
    ellipse(125,175,50,50);
    ellipse(175,225,50,50);
    ellipse(225,275,50,50);
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Bethany Shapiro

    Rainbow Circles

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

    Practice placing circles accurately and playing with color.

    You can use smooth() method to smooth out the edges of the circle.
    Bethany Shapiro
    17 Jul 2009
    Thanks! I just finished Chapter 2 of Learning Processing and I remember reading that, but these things don't stick in my brain quickly!
    You need to login/register to comment.