Skip to content

Commit

Permalink
P_2_0: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels-NTG committed Aug 14, 2017
1 parent adcf492 commit 1ede216
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion 01_P/P_2_0_01/sketch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// P_2_0_01.pde
// P_2_0_01
//
// Generative Gestaltung, ISBN: 978-3-87439-759-9
// First Edition, Hermann Schmidt, Mainz, 2009
Expand Down
2 changes: 1 addition & 1 deletion 01_P/P_2_0_02/sketch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// P_2_0_02.pde
// P_2_0_02
//
// Generative Gestaltung, ISBN: 978-3-87439-759-9
// First Edition, Hermann Schmidt, Mainz, 2009
Expand Down
18 changes: 4 additions & 14 deletions 01_P/P_2_0_03/sketch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// P_2_0_03.pde
// P_2_0_03
//
// Generative Gestaltung, ISBN: 978-3-87439-759-9
// First Edition, Hermann Schmidt, Mainz, 2009
Expand Down Expand Up @@ -38,8 +38,6 @@ function setup() {
colorMode(HSB, 360, 100, 100, 100);
noFill();
strokeWeight(2);

strokeColor = [];
strokeColor = color(0, 10);
}

Expand Down Expand Up @@ -70,15 +68,7 @@ function keyReleased() {
if (keyCode == DELETE || keyCode == BACKSPACE) background(0, 0, 100);
if (key == 's' || key == 'S') saveCanvas(gd.timestamp(), 'png');

switch (key) {
case '1':
strokeColor = color(0, 0, 0, 10);
break;
case '2':
strokeColor = color(192, 100, 64, 10);
break;
case '3':
strokeColor = color(52, 100, 71, 10);
break;
}
if (key == '1') strokeColor = color(0, 0, 0, 10);
if (key == '2') strokeColor = color(192, 100, 64, 10);
if (key == '3') strokeColor = color(52, 100, 71, 10);
}

0 comments on commit 1ede216

Please sign in to comment.