This commit is contained in:
Casey Reas
2011-09-18 06:31:29 +00:00
parent 76e9248e00
commit 5b0214704c
86 changed files with 95 additions and 178 deletions
@@ -16,18 +16,23 @@
* featured below.
*/
// The next line is needed if running in JavaScript Mode with Processing.js
/* @pjs font="Georgia.ttf"; */
char letter;
String words = "Begin...";
void setup() {
size(640, 360);
// Create the font
textFont(createFont("Georgia", 36));
}
void draw() {
background(0); // Set background to black
// Draw the letter to the center of the screen
textSize(12);
textSize(14);
text("Click on the program, then type to add to the String", 50, 50);
text("Current key: " + letter, 50, 70);
text("The String is " + words.length() + " characters long", 50, 90);