• fullscreen
  • sketch14612.pde
  • int Width=200;
    int Height=200;
    
     
    void setup(){
    size(200,200);
      background(255);
      
    }
    
     
    void draw() {  //draw function loops 
          int i,j,a=0;
          stroke(5);
          for(i=5 ; i < Height ; i = i +10){
            for(j=5;j<Width;j=j+10){
                    if(a%2==0){
                        fill(255);
                    }
                    else{
                        fill(0);
                    }
                    ellipse(i,j,5,5);
                    a++;
            }
            a++;
          }
    }
     
    
                    
                                    

    code

    tweaks (0)

    about this sketch

    This sketch is running in HTML5 using Processingjs.

    license

    advertisement

    Kim, Dong eun

    example16

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

    You need to login/register to comment.