xxxxxxxxxx
26
function setup() {
createCanvas(400, 400);
background(220);
buddy(100, 100, 0);
buddy(300, 100, radians(-45));
buddy(200, 300, radians(10));
//138
}
function buddy(x, y, rotation){
rectMode(CENTER);
push();
translate(x, y);
rotate(rotation);
stroke(3);
rect(0, 0, 150, 50);
line(50, 0, 75, 20);
strokeWeight(5);
point(60, -15);
pop();
}
function draw() {
//background(220);
}