/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://designuniandes.sketchpad.cc/sp/pad/view/ro.zCxL0-epSQN/rev.15
*
* authors:
* Natalia Garcia
* Juan Diego Santos
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// This sketch builds on a prior work, "Assignment 1: Form", created by Hernando Barragan
// http://designuniandes.sketchpad.cc/sp/pad/view/ro.BQLmTBYyWiW9K5/rev.1
PShape s;
PShape c2;
PShape c3;
PShape c4;
PShape c5;
PShape c6;
PShape s1;
PShape s2;
int value;
void setup() {
size(400, 400);
s = loadShape("/static/uploaded_resources/p.15834/Senecio2.svg");
s1 = loadShape("/static/uploaded_resources/p.15834/Senecio2.svg");
s2 = loadShape("/static/uploaded_resources/p.15834/Capa2.svg");
c2 =loadShape("/static/uploaded_resources/p.15834/Capa2.svg");
c3 =loadShape("/static/uploaded_resources/p.15834/Capa3.svg");
c4 =loadShape("/static/uploaded_resources/p.15834/Capa4.svg");
c5 =loadShape("/static/uploaded_resources/p.15834/Capa5.svg");
c6 =loadShape("/static/uploaded_resources/p.15834/Capa6.svg");
}
void draw() {
shape(s, 0, 0, 400, 400);
shape(c2, 0, 0, 400, 400);
shape(c3, 0, 0, 400, 400);
shape(c4, 0, 0, 400, 400);
}
void mouseMoved() {
for (int i = 0; i < 40; i = i+1) {
// line(30, i, 80, i);
}
value = value + 1;
if (value >= 90 && value <= 400) {
value = value + 1;
shape(c5,0,0);
loadPixels();
} else if (value >= 401) {
value = value + 1;
shape(c5,0,0);
shape(c6,0,0);
}
}