sketch
//Audrey Zheng
//Section A
//audreyz@andrew.cmu.edu
//Project 5
var pawSize = 76
var startx = 95
var starty = 173
function setup() {
createCanvas(600, 600);
noLoop();
}
function draw() {
background(170,170,247);
//paw(-50,-70);
for (var space = -60; space <width; space+=110){
for (var yspace = -130; yspace <height; yspace +=140) {
paw(space, yspace);
}
}
}
function paw(x,y) {
push();
translate(x,y);
rotate(PI/9.0);
noStroke();
//claws
fill(220);
triangle(77.63,166.01, 91,181,110,172);
triangle(112,154,116,136,125,152);
triangle(145,155,156,137,160,160);
triangle(170,174,187,167,180,183);
fill(19,19,29);
rect(95, 173, pawSize, pawSize, 33);
ellipseMode(CORNER);
//the paw
ellipse(83,162,34,35);
ellipse(105,145,34,35);
ellipse(132, 145,34,35);
ellipse(149,162,34,35);
//toe beans
fill(251,168,179);
ellipse(91,170,18,18);
ellipse(112,153,18,18);
ellipse(140,153,18,18);
ellipse(157,169,18,18);
ellipse(107,188,34,25);
ellipse(120,178,28,25);
ellipse(127,187,34,25);
//highlights
fill(255);
ellipse(97,173,6,4);
ellipse(117,155,6,4);
ellipse(146,155,6,4);
ellipse(164,172,6,4);
ellipse(126,182,6,4);
pop();
}