So this scene is a wind animation, which we were tasked to recreate in week one of interactive art.
- And I managed to recreate it to:
In this code i was able to use translate and rotate, it required alot of calculating my physical calculator and i related it to photoshop in a way that it is a art form that requires layers.
For the second red/brown figure, i wanted to use a different method to create the character and used quads(); instead. However, i found out i should have used scale instead.
//face
pushMatrix();
translate(350, 200);
fill(255);
rotate(PI/9.0);
rect(0, -30, 55, 35); // face
// rect(r for top-left,r for top-right, r for bottom-right, r for bottom-left.
popMatrix();
//mouth
stroke(0);
ellipseMode(RADIUS);
fill(0); // Set fill to black
ellipse(368, 197, 8.7, 8.7);
ellipse(373, 203, 9, 9);
ellipse(380, 207, 9.5, 9.5);
ellipse(387, 205, 9, 9);
fill(255);
ellipse(385, 200, 2, 3);// little tooth
//eyes
strokeWeight(3);
line(365, 181, 393, 191);
strokeWeight(1);
ellipseMode(RADIUS); // Set ellipseMode to RADIUS
fill(255); // Set fill to white
ellipse(365, 181, 10, 10); // Draw white ellipse using RADIUS mode
ellipse(393, 191, 10, 10);//ellipse (x,y,width,height)