xxxxxxxxxx
36
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
drawCreature(100, 100, radians(0));
drawCreature(300, 100, radians(-45));
drawCreature(200, 300, radians(10));
fill ('black')
ellipse (155, 95, 13, 13)
ellipse (335, 55, 13, 13)
ellipse (255, 305, 13, 13)
}
function drawCreature(cx, cy, cr){
push();
translate(cx, cy);
rotate(cr);
fill(255);
strokeWeight(3);
rectMode(CENTER);
rect(0, 0, 150, 50)
strokeWeight(3)
line(0 + 55, 0 + 6, 0 + 75, 0 + 13);
pop()
}