|
1 | 1 | // Cover.pde |
2 | 2 | // ImageRibbon.pde, Tag.pde |
3 | | -// |
| 3 | +// |
4 | 4 | // Generative Gestaltung, ISBN: 978-3-87439-759-9 |
5 | 5 | // First Edition, Hermann Schmidt, Mainz, 2009 |
6 | 6 | // Hartmut Bohnacker, Benedikt Groß, Julia Laub, Claudius Lazzeroni |
@@ -129,10 +129,12 @@ float tagBlockFactor = 1; |
129 | 129 | float tagBlockGapRatio = 0.25; |
130 | 130 |
|
131 | 131 |
|
| 132 | +void settings() { |
| 133 | + size(1310 * qf, 822 * qf); |
| 134 | +} |
132 | 135 |
|
133 | 136 |
|
134 | 137 | void setup() { |
135 | | - size(1310*qf, 822*qf); |
136 | 138 | frameRate(4); |
137 | 139 |
|
138 | 140 | smooth(); |
@@ -310,16 +312,16 @@ void setup() { |
310 | 312 | // ------ load files ------ |
311 | 313 | imageCount = 0; |
312 | 314 |
|
313 | | - File dir = new File(sketchPath, "data/images"); |
| 315 | + File dir = new File(sketchPath(), "data/images"); |
314 | 316 |
|
315 | 317 | if (dir.isDirectory()) { |
316 | 318 | String[] contents = dir.list(); |
317 | | - images = new PImage[contents.length]; |
| 319 | + images = new PImage[contents.length]; |
318 | 320 | //for (int i = 15 ; i < 60; i++) { |
319 | 321 | for (int i = 0 ; i < contents.length; i++) { |
320 | 322 | if (contents[i].charAt(0) == '.') continue; |
321 | 323 | else if (contents[i].toLowerCase().endsWith(".png") || contents[i].toLowerCase().endsWith(".jpg")) { |
322 | | - File childFile = new File(dir, contents[i]); |
| 324 | + File childFile = new File(dir, contents[i]); |
323 | 325 | images[imageCount] = loadImage(childFile.getPath()); |
324 | 326 | println(imageCount+" - "+contents[i]); |
325 | 327 | imageCount++; |
|
0 commit comments