Index / 2017 / Text Flash
400×400 · p5.js instance mode
Text_Flash.pde 36 lines
String words;
float n;

void setup() {
  size(400, 400);
  n = 0;
}

void draw() {
  background(#000000);
  sentence();
  textSize(36);
  textAlign(CENTER);
  text(words, width/2, height/2);
}

void sentence() {
  n += 0.075;
  if (n <= 1) {
    words = "hey";
  } else if (n <= 2) {
    words = "what's";
  } else if (n <= 3) {
    words = "up";
  } else if (n <= 4) {
    words = "guys,";
  } else if (n <= 5) {
    words = "it's";
  } else if (n <= 6) {
    words = "scarce";
  } else if (n <= 7) {
    words = "here.";
  } else if (n <= 8) {
    n = 0;
  } 
}
read-only archive source from /2017/Just for Fun/Text_Flash/Text_Flash.pde

Description

This page is generated from the Processing project folder at /2017/Just for Fun/Text_Flash/Text_Flash.pde.

Archive

No companion assets were found in this sketch folder.