• fullscreen
  • sketch43704.pde
  • float q=350f,a,b,c,d,x,y,X,Y,u,v,U,V,f,g,ca,cb,sa,sb,qc;
    
    void setup() {
      size(700,700);background(#eeeeee);stroke(0x15000000);noFill();smooth();
      a=PI;b=a/2; f=a/random(18,180);g=a/random(18,180); c=1f;
    }
    void draw() {
      qc= q-(c+=.01);
      x=q+(sb=sin(b+=g))*c; y=q+(cb=cos(b))*c; X=q-sb*qc; Y=q-cb*qc;
      u=q+(sa=sin(a+=f))*c; v=q+(ca=cos(a))*c; U=q-sa*qc; V=q-ca*qc;
      bezier(x,y,u,v,U,V,X,Y);
    }
    void mousePressed() {setup();}
    
                    
                                                                                                                                    

    code

    tweaks (0)

    about this sketch

    This sketch is running in HTML5 using Processingjs.

    license

    advertisement

    Ale

    hipnosis

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

    Another small generator: a bezier curve rotates following two antisymmetric spiral paths.
    Click to reset randomly the initial settings.

    You need to login/register to comment.