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.
The following is my code:
size(700,400);
background(238, 236, 233);
//main blue body
//face
pushMatrix();
translate(350, 200);
fill(255);
rotate(PI/9.0);
rect(0, -30, 55, 35); Â // face
popMatrix();
//lower body
pushMatrix();
translate(350, 200);
fill(154,166,173);
// 90° = PI/2
rotate(PI/9.0); Â
//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();
//2nd lower body layer
pushMatrix();
noStroke();
translate(350, 200);
fill(154,166,173);
// 90° = PI/2
rotate(PI/9.0); Â
rect(0, 40, 60, 20); // lower body 2nd layer
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)
//main body
pushMatrix();
translate(350, 200);
fill(154,166,173);
// 90° = PI/2
rotate(PI/9.0); Â
rect(0, 0, 60, 40); Â // main body rectangle (x, y, width, height)
popMatrix();
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
✓ Live Streaming✓ Interactive Chat✓ Private Shows✓ HD Quality
Anya is LIVE right now
FREE
Free to watch • No registration required • HD streaming