Code

void setup(){
  size(200,200);
  smooth();

  PFont pixelfont;
  pixelfont = loadFont("Standard.vlw");
  textFont(pixelfont, 8);

  // PSound droplet;
  // droplet  = loadSound("Droplet.wav");
}

void draw(){

  background(0);

  float m = (millis()%1000);
  float h = (((height+400) * m)/1000)-200;

  fill(255);
  text("millis = "+m, width*0.1, height*0.85);
  text("h = "+h, width*0.1, height*0.92);

  pushMatrix();
  {     
    translate(width*0.7,h);
    rotate(radians(90));
    scale(40,15);

    noStroke();
    fill(255,200,200);
    beginShape(POLYGON);
    for (float t=0; t<=2*PI; t=t+0.05){
      float x = 1 + sin(t);
      float y = cos(t)*(1+sin(t));
      vertex(x,y);
    }
    endShape();
  }
  popMatrix();
}

02x -- Scratch Pad: Doodle area for assignments 02x

Statement:A place to upload your work-in-progress or other sketch code, in case you need it.

hide statement