xxxxxxxxxx
75
function setup() {
createCanvas(800, 800);
}
function drawCat(catCenter, rotation)
{
push();
translate(catCenter);
rotate(rotation);
fill(0);
circle(0 , 0, 100)
triangle(-48, -10, -55, -70, -12, -45);
triangle(48, -10, 55, -70, 12, -45);
fill(255);
circle(-20,-10,30)
circle(20,-10,30)
noStroke();
fill(2, 98, 182)
circle(-20,-10,25)
circle(20,-10,25)
fill(202, 137, 155)
triangle(0,10, -6, 5, 6 , 5)
push();
stroke(255);
strokeWeight(1);
line(0, 10, 0, 15);
pop();
push();
stroke(255);
strokeWeight(1);
translate(-1, 15)
rotate(PI/3);
line(0, 0, 0, 10);
pop();
push();
stroke(255);
strokeWeight(1);
translate(1, 15);
rotate(-PI/3);
line(0, 0, 0, 10);
pop();
pop();
}
function draw() {
background(160);
drawCat(createVector(width/2, height/2), );
// print(mouseX, mouseY);
}