Skip to content

Instantly share code, notes, and snippets.

@jhowliu
Created October 20, 2013 13:05
Show Gist options
  • Save jhowliu/7069351 to your computer and use it in GitHub Desktop.
Save jhowliu/7069351 to your computer and use it in GitHub Desktop.
int size = 30;
boolean change = true;
void setup() {
size(500, 500);
frameRate(60);
textAlign(CENTER);
}
void draw() {
background(0);
if (size > 30 && change) {
textSize(size);
size--;
} else if (size <= 80) {
textSize(size);
size++;
change = false;
} else {
change = true;
}
text("Hello world", 250, 250);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment