Skip to content

Commit 39d7940

Browse files
author
Niels Poldervaart
committed
03_A: Moved size(…) to settings method instead of setup
1 parent b7cb429 commit 39d7940

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

03_A/Cover/Cover.pde

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,12 @@ float tagBlockFactor = 1;
129129
float tagBlockGapRatio = 0.25;
130130

131131

132+
void settings() {
133+
size(1310 * qf, 822 * qf);
134+
}
132135

133136

134137
void setup() {
135-
// Default values are:
136-
// width: 1310;
137-
// height: 822;
138-
// Multiply this values by qf to get the correct resolution.
139-
size(1310, 822);
140138
frameRate(4);
141139

142140
smooth();

03_A/Force_Directed_Tags/Force_Directed_Tags.pde

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ int[] bookParts = new int[0];
9999
PFont font;
100100

101101

102+
void settings() {
103+
size((2*205)*qf, 285*qf);
104+
}
105+
106+
102107
void setup() {
103-
size((2*205)*qf, 285*qf);
104108
background(255);
105109
smooth();
106110
noStroke();

0 commit comments

Comments
 (0)