• fullscreen
  • origami_crane.pde
  • void setup()
    {
      size(800,600);
      background(255);
      float colorgrad=0.175;
      /*for(int i=0;i<800;i++)
      {
        stroke(255);
        line(i,0,i,600);
      }*/
      smooth();
      
      //noStroke();
      //rect(200,250,30,32);
      
      stroke(220);
      for(int i=0;i<30;i++)
      {    line(300-i*0.5,280-i,550+i*0.5,280-i);    
      }
      
      stroke(220);
      fill(220);
      triangle(285,250,425,80,565,250);
      
      stroke(200);
      line(425,250,425,80);
      
      stroke(255);
      fill(240);
      triangle(200,100,300,300,220,100);
      fill(230);
      triangle(300,300,220,100,335,300);
      
      fill(240);
      triangle(100,150,200,100,220,130);
      
      rect(300,280,250,32);
      fill(200);
      triangle(300,280,260,450,550,280);
      
    
      fill(180);
      triangle(300,280,570,450,550,280);
    
      
      fill(240);
      triangle(550,280,550,340,670,100);
      
      triangle(300,280,425,210,550,280);
      
      stroke(250);
      for(int i=0;i<30;i++)
      {    line(300-i*0.5,280+i,550+i*0.5,280+i);    
      }
      stroke(240);
      line(285,309,565,309);    
      noStroke();
      fill(235);
      triangle(285,310,425,580,565,310);
      stroke(240);
      line(425,310,425,580);    
    }
    
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    rajan

    origami crane

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

    Hi,
    that's interesting that it doesn't show up on the browser. The code looks right. I am sure it would work if you put a draw() function, and possible moving the drawing code to draw() function.
    rajan
    8 Oct 2008
    @sinan.. thanks for your comments. i'll def make the changes...
    You need to login/register to comment.