Week 7

by Yulong Guo
  • Show Sketch
/** @peep sketchcode */
float y = 200;
float y1 = 1;
 
void setup() {
  size(400, 400);
  PFont ControllerOne = createFont("Controller_One.otf", 96);
  textFont(ControllerOne);
  textAlign(CENTER);
  frameRate(30);
}
 
void draw() {
  background(0);
  fill(random(255), random(255), random(255));
  text("FLY", width/2, y);
  y1 = y1 * 1.2;
  y = min(y-y1, height);
  if(frameCount % 50 == 0) {
    y = 500;
    y1 = 1;
  }
}

Comments

Nobody has said anything yet.