• fullscreen
  • sketch56013.pde
  • float angle = 0.0;
    float x = -50.0;
    float y = 35;
    float c = 10.0;
    
    void setup () {
      size(350, 250);
      background (#163548);
      smooth();
      noStroke();
        fill(255);
    }
    
    void draw () {
      x = x + 0.3;
     if (x > - 10) {
        x = - 150;
     }
     y = y - 0.053;
    if (y < 1) {
       y = 1;
    }
      frameRate(30);
      fill(#163548,50);
      rect (0, 0, 350, 350);
      fill(255);
      angle = angle + 0.02;
      translate (175, 125);
      rotate (angle);
     
      ellipseMode (CENTER);
      ellipse(x+50, 40, y, y);
      ellipse(x+50, 80, y, y);
      ellipse(x+50, 120, y, y);
    }
    

    code

    tweaks (0)

    about this sketch

    This sketch is running in HTML5 using Processingjs.

    license

    advertisement

    Cheryl Li

    Project 2C - Loop

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

    You need to login/register to comment.