Created
October 20, 2013 13:05
-
-
Save jhowliu/7069351 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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