-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobject_tutorial.pde
More file actions
41 lines (37 loc) · 1.28 KB
/
Copy pathobject_tutorial.pde
File metadata and controls
41 lines (37 loc) · 1.28 KB
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
final int imageWidth = 300;
final int imageHeight = 150;
final color blue = color(0, 0, 255);
final color anko = color(122, 82, 89);
final color custard = color(254, 210, 89);
final color matcha = color(139, 192, 53);
final color okazu = color(51, 41, 17);
PImage taiyaki;
PImage taiyaki_filling_anko;
PImage taiyaki_filling_custard;
PImage taiyaki_filling_matcha;
PImage oyaki;
PImage oyaki_filling_anko;
PImage oyaki_filling_custard;
PImage oyaki_filling_okazu;
Taiyaki[] taiyakis = {};
void setup() {
size(1400, 800);
taiyaki = loadImage("taiyaki.png");
taiyaki_filling_anko = loadImage("taiyaki_filling_anko.png");
taiyaki_filling_custard = loadImage("taiyaki_filling_custard.png");
taiyaki_filling_matcha = loadImage("taiyaki_filling_matcha.png");
oyaki = loadImage("oyaki.png");
oyaki_filling_anko = loadImage("oyaki_filling_anko.png");
oyaki_filling_custard = loadImage("oyaki_filling_custard.png");
oyaki_filling_okazu = loadImage("oyaki_filling_okazu.png");
GenerateButton genButton = new GenerateButton(100, 100);
}
void draw() {
for (int i=0; i<taiyakis.length; i++) {
taiyakis[i].display();
taiyakis[i].move();
}
genButton.display();
}
void mouseClicked() {
}