-
Notifications
You must be signed in to change notification settings - Fork 0
/
segundaCorrupcion.pde
48 lines (33 loc) · 936 Bytes
/
segundaCorrupcion.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
PFont helvetica;
String quote = "to\nbe\nthe\nwaterto\nbe\nthe\nwaterto\nbe\nthe\nwaterto\nbe\nthe\nwaterto\nbe\nthe\nwaterto\nbe\nthe\nwaterto\nbe\nthe\nwaterto\nbe\nthe\nwater";
char char1 = quote.charAt(8);
void setup() {
size(900,900);
helvetica= createFont("HelveticaNeueLTStd-Ex.otf", 1000);
//textAlign(LEFT, CENTER);
textFont(helvetica);
}
void draw() {
background(#f1f1f1);
fill(0);
float fontSize = 260;
float lineHeight = 0.9;
textSize(60 - (frameCount*2));
//textLeading(fontSize*lineHeight);
float amount = frameCount;
float step = 360.0 / amount;
push();
translate(width/2, height/2);
for (int i = 0; i < amount; i++) {
float rotation = step*i;
push();
rotate(radians(rotation * 100));
//text(quote, 80, 0);
String[] poem = loadStrings("naufragio.txt");
for (int b = 0 ; b < poem.length; b++) {
text(poem[b], 80, 0);
}
pop();
}
pop();
}