• fullscreen
  • sketch_jan10a.pde
  • void setup()
    {
      size(640,480);
      smooth();
      frameRate(25);
      background(255);
      
    }
    void draw()
    { 
      fill(255,50);
      rect(0,0,width,height);
      drawIter(400,PI+((frameCount/1000.0)%(2*PI)));
    }
    void drawIter(int iter,float incr)
    {
      float X,Y,prevX=0,prevY=0;
      boolean firsttime=true;
      
      stroke(#0000ff,100);
      for(float i=0;i<iter;i+=incr)
      {
        X = width/2+i*cos(noise(mouseX,mouseY)*i);
        Y = height/2+i*sin(noise(mouseY,mouseX)*i);
        if(firsttime)
        {firsttime=false;}
        else
        {
          line(prevX,prevY,X,Y);
        }
        prevX=X;
        prevY=Y;
      }
    }
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Report Sketch

    Report for inappropriate content

    Please provide details if possible:

    Your have successfully reported the sketch. Thank you very much for helping to keep OpenProcessing clean and tidy :)

    Make a Copyright Infringement claim

    Sad Eden

    Noisy spirograph

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

    Just mouse your mouse over the applet and keep it still to watch it fold and unfold.

    shingo kita
    11 Jan 2011
    good !
    Sad Eden
    11 Jan 2011
    Thanks ! It's here for your pleasure :)
    You need to login/register to comment.