xxxxxxxxxx
36
var x=0;
var y= 0;
var z=0;
function setup() {
createCanvas(400, 400);
rectMode(CENTER);
}
function draw() {
background (220);
drawCreature (100, 100, radians(0));
drawCreature (300, 100, radians(-45));
drawCreature (200, 300, radians(10));
}
function drawCreature(x, y, z){
push();
translate (x, y);
rotate (z);
strokeWeight (3);
rect(0, 0, 150, 50);
strokeWeight (10);
point(65, -10);
strokeWeight(3);
line (75, 15, 60, 5);
pop();
}