Skip to content

Commit d7527d5

Browse files
committed
Fixing exercise code #199
1 parent 568f7b6 commit d7527d5

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

chp17_strings/exercise_17_08_text_in_3D/exercise_17_08_text_in_3D.pde

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@
22
// Daniel Shiffman
33
// http://www.learningprocessing.com
44

5-
// Exercise 17-8: Display text that is centered and rotated to appear flat. Have the text scroll off into the distance.
5+
// http://www.learningprocessing.com
66

7+
// Exercise 17-8: Display text that is centered and rotated to appear flat. Have the text scroll off into the distance.
78

8-
//“\n” means new line. In Java, invisible characters can be incorporated into a String with an “escape sequence”-a backward slash “\” followed by a character.
9+
// \n means new line. In Java, invisible characters can be incorporated into a String with an “escape sequence”-a backward slash “\” followed by a character.
910
// Here are a few more.
1011
// \n-new line
1112
// \r-carriage return
1213
// \t-tab
1314
// \'-single quote
1415
// \”-double quote
15-
// \\-backward slash
16+
// \-backward slash
1617

1718
String info = "A long long time ago\nIn a galaxy far far away";
1819
PFont f;
1920
float y = 0;
21+
2022
void setup() {
21-
size(400, 200);
23+
size(400, 200, P3D);
2224
f = createFont( "Arial", 12);
2325
}
26+
2427
void draw() {
2528
background(255);
2629
fill(0);
2730
translate(width/2, height/2);
28-
//rotateX(PI/4);
31+
rotateX(PI/4);
2932
textFont(f);
3033
textAlign(CENTER);
31-
text(info, 0, 0);
32-
rectMode(CENTER);
33-
fill(0,100);
34-
rect(0,0,100,100);
35-
//y--;
36-
}
34+
text(info, 0, y);
35+
y--;
36+
}

0 commit comments

Comments
 (0)