Week 3: Visual abstraction
Hard_soft composition
int transparency;
void draw() {
size(500,500);
background(200);
if(mousePressed) {
// PLACE HARD GRAPHICS HERE
background(0);
noStroke();
rectMode(CORNER);
rect(180,50,300,300);
rectMode(CENTER);
for (int x=15; x<480; x=3*x/2) {
fill(164,36,0,80);
rect(180,350,x,x);
}
}
else {
// PLACE SOFT GRAPHICS HERE
background(78,114,124);
smooth();
rectMode(CORNER);
noStroke();
fill(255,80);
rect(180,50,300,300);
rect(350,100,90,90);
fill(255);
rect(370,120,15,15);
}
}
Hard_soft composition
int transparency;
void draw() {
size(500,500);
background(200);
if(mousePressed) {
// PLACE HARD GRAPHICS HERE
background(0);
noStroke();
rectMode(CORNER);
rect(180,50,300,300);
rectMode(CENTER);
for (int x=15; x<480; x=3*x/2) {
fill(164,36,0,80);
rect(180,350,x,x);
}
}
else {
// PLACE SOFT GRAPHICS HERE
background(78,114,124);
smooth();
rectMode(CORNER);
noStroke();
fill(255,80);
rect(180,50,300,300);
rect(350,100,90,90);
fill(255);
rect(370,120,15,15);
}
}
0 Comments:
Post a Comment
<< Home