This commit is contained in:
Casey Reas
2011-09-05 23:20:15 +00:00
parent 5a1c9d8bab
commit b99624cdb4
6 changed files with 30 additions and 30 deletions
@@ -10,10 +10,9 @@ float x, y; // X and Y coordinates of text
float hr, vr; // horizontal and vertical radius of the text
void setup() {
size(200, 200);
PFont font = loadFont("AmericanTypewriter-24.vlw");
textFont(font);
size(640, 360);
textAlign(CENTER, CENTER);
textSize(48);
hr = textWidth(message) / 2;
vr = (textAscent() + textDescent()) / 2;
noStroke();
@@ -22,7 +21,7 @@ void setup() {
}
void draw() {
// instead of clearing the background, fade it by drawing
// Instead of clearing the background, fade it by drawing
// a semi-transparent rectangle on top
fill(204, 120);
rect(0, 0, width, height);