-
Notifications
You must be signed in to change notification settings - Fork 5
/
tonari_no_totoro.pde
59 lines (40 loc) · 1.03 KB
/
tonari_no_totoro.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
49
50
51
52
53
54
55
56
57
58
59
// Manuale di Programmazione Cinematografica
// Daniele Olmisani, 2017
// Tonari no Totoro (1988)
final color PAPER = color(90, 85, 80);
final color INK1 = color(240);
final color INK2 = color(30);
final color INK3 = color(230, 210, 170);
void setup() {
size(480, 640);
noLoop();
}
void draw() {
final float S = min(width, height);
final float U = 0.002;
translate(0.50*width, 0.25*height);
scale(S);
background(PAPER);
noStroke();
fill(INK1);
ellipse(-0.30, 0.0, 0.2, 0.2);
ellipse( 0.30, 0.0, 0.2, 0.2);
fill(INK2);
ellipse(-0.25, 0.0, 0.1, 0.1);
ellipse( 0.25, 0.0, 0.1, 0.1);
ellipse(0.0, 0.05, 0.1, 0.02);
ellipse(0.0, 0.06, 0.03, 0.02);
fill(INK3);
ellipse(0.0, 1.0, 1.5, 1.5);
fill(PAPER);
ellipse( 0.0, 0.45, 0.2, 0.2);
fill(INK3);
ellipse( 0.0, 0.48, 0.3, 0.2);
fill(PAPER);
ellipse(-0.2, 0.55, 0.2, 0.2);
ellipse( 0.2, 0.55, 0.2, 0.2);
fill(INK3);
ellipse(-0.2, 0.58, 0.3, 0.2);
ellipse( 0.2, 0.58, 0.3, 0.2);
save("tonari-no-totoro.png");
}