Ani­m­a­t­e­d Typ­o­g­r­a­p­h­y - Fal­l­i­n­g

by Travis Low
  • Show Code
/* @pjs font=/uploads/1/rabiohead.ttf; */
/** @peep sketch **/
 
boolean end = false;
float y = -30 ;
float dy = 1;
 
void setup() {
  size(200, 200);
  PFont rabiohead = createFont("/uploads/1/rabiohead.ttf", 48);
  textFont(rabiohead);
  frameRate(120);
}
 
void draw() {
  background(204);
  fill(0); 
  textAlign(CENTER, CENTER); 
  text("falling", width/2, y++);
  if (    y > height + 20) {
  y = -30;
  }
}

Comments

Nobody has said anything yet.