• fullscreen
  • flat_ellipses.pde
  • //import processing.pdf.*;
    
    size(500,500);
    //beginRecord(PDF, "flat_ellipses.pdf"); //Keep it up here
    background(255);
    noFill();
    smooth();
    
    for(int i=0; i<width; i+=40)
     {
      for(int j=0; j<height; j+=40)
      {
       float r = random(5);
       
       strokeWeight(3);
       stroke(255,255,0,200);
       ellipse(i, j, r,20);
       stroke(0,255,0);
       strokeWeight(1);
       ellipse(j, i, r, 5);
       stroke(255,0,0);
       ellipse(i,j, i, 10);
       stroke(0,0,255);
       strokeWeight(1);
       ellipse(i,j, r,10);
       
       
       
         }
     }
    
    
     
    
     
    //endRecord(); //Keep this at the end
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Jerod Rivera

    pattern_2

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

    pattern with nested for loops

    You need to login/register to comment.