xxxxxxxxxx
49
var chamLength;
var chamHeight;
var chamColor;
var chamLimbs;
function setup() {
createCanvas(400, 500);
chamLength = 150;
chamHeight = 150;
chamColor = color(179, 204, 37);
chamLimbs = color(222, 235, 45);
}
function draw() {
background(255, 235, 232);
//body
noStroke();
fill(chamColor);
//arc(50, 55, 80, 80, HALF_PI + QUARTER_PI, TWO_PI);
//quad(50, 55, 150, 35, 160, 65, 40, 85);
arc(width/2, height/2, chamLength, chamHeight, QUARTER_PI + HALF_PI, TWO_PI - QUARTER_PI);
//tail
//rotate (-PI / 4.3);
//translate(-width/1.5, -height/3.4);
noStroke();
triangle(200, 250, 130, 225, 100, 360);
//leggies
stroke(chamLimbs);
strokeWeight(10);
line(width/1.75, height/2.5, 200, height/2.2);
line(200, height/2.2, 230, height/2);
line(width/2.5, height/1.95, width/3, height/1.75);
line(width/2.5, height/1.95, 180, 290);
//head
noStroke();
translate(width/1.5, height/3.4);
rotate(PI / 4.3);
rect(-32, 0, 55, 55, 40, 10, 0, 0);
}
function mousePressed(){
}