• fullscreen
  • sketch152169.pde
  • int num =20;
    float step, sz, offSet, theta, angle;
    
    void setup() {
      size(600, 400);
      strokeWeight(5);
      step = 22;
    }
    
    void draw() {
      background(20);
      translate(width/2, height*.75);
      angle=0;
      for (int i=0; i<num; i++) {
        stroke(255);
        noFill();
        sz = i*step;
        float offSet = TWO_PI/num*i;
        float arcEnd = map(sin(theta+offSet),-1,1, PI, TWO_PI);
        arc(0, 0, sz, sz, PI, arcEnd);
      }
      colorMode(RGB);
      resetMatrix();
      theta += .0523;
      
    }
    

    code

    tweaks (9)

    about this sketch

    This sketch is running in HTML5 using Processingjs.

    license

    advertisement

    Jerome Herr
    Pierre MARZIN
    19 Jun 2014
    Wow! I'm impressed! Again, such a simple code for such a powerful visual effect! Great idea!
    Jerome Herr
    19 Jun 2014
    Thanks! And that's what I love about Processing :D You can do really cool stuff with not much code!! As long as you have a good idea (which I usually get while playing/sketching around).
    TomaszS
    21 Jun 2014
    This is very good :)
    Jerome Herr
    21 Jun 2014
    Thank you, Tomasz :)
    You need to login/register to comment.