Here you guys go! I managed to get the recording on here. I feel pretty good about myself. I didn't read the entire code and there are a few verbal mistakes, but I think it sounds good. I will make a finalized version of this code reading later!
This is the code I read from:
int wolfAngle = 10;
int angleChange = 1;
final int ANGLE_LIMIT = 1;
void setup()
{
size(500, 400);
smooth();
frameRate(1000);
}
void draw ()
{
translate(100, 30, 50);
pushMatrix();
popMatrix();
drawWolf();
wolfAngle += angleChange;
if (wolfAngle > ANGLE_LIMIT || wolfAngle < 50)
{
wolfAngle += angleChange;
angleChange = -angleChange;
}
}
void drawWolf()
{
background(162);
rectMode(CENTER);
size(500,400);
rotate(radians(wolfAngle));
rect(180, 130, 20, 160);
ellipse(180, 85, 60, 60);
line(170, 115, 150, 130);
line(150, 170, 150, 130);
line(190, 115, 208, 130);
line(210, 170, 208, 130);
ellipse(160, 80, 10, 10);
ellipse(199, 80, 10, 10);
ellipse(180, 105, 30, 20);
ellipse(180, 103, 15, 5);
ellipse(159, 43, 07, 43);
ellipse(202, 43, 07, 43);
rect(180, 210, 50, 40);
ellipse(156, 230, 30, 60);
ellipse(204, 230, 30, 60);
ellipse(150, 180, 20, 20);
ellipse(210, 180, 20, 20);
ellipse(210, 260, 35, 20);
ellipse(150, 260, 35, 20);
}
No comments:
Post a Comment