xxxxxxxxxx
95
function setup() {
let a = 400
createCanvas(a, a);
}
//NOTE: add blendmodes, translate, rotate, etc.
function draw() {
background(0);
let a = 400;
let b = a / 2;
//rect((400-250), (400-350), 150, 200);
//horizontal guides
//rect(x, y, w, h, [detailX], [detailY])
strokeWeight(1)
fill(240);
stroke(255, 254, 0);
rect(0, b-100, a, 0);
rect(0, b, a, 0);
rect(0, b+100, a, 0);
//vert guides
rect(b-100, 0, 0, a);
rect(b, 0, 0, a);
rect(b+100, 0, 0, a);
stroke(255, 0, 0);
rect(b-25, 0, 0, a);
rect(b-50, 0, 0, a);
//shirt body
noStroke();
//rect(100, 100, 200, 250);
//quad(x1, y1, x2, y2, x3, y3, x4, y4)
//strokeWeight(6)
//curve(100, 100, b-124, 200, b-140, 300, 100, 350);
quad(b-100, 100, 100, 350, 300, 350, b+100, 100);
//shirt sleeves
//quad(x1, y1, x2, y2, x3, y3, x4, y4)
quad(100, 100, 150, 100,50, 275, 0, 250,);
quad(300, 100, 250, 100,350, 275, 400, 250,);
//neck ellipse
//ellipse(x, y, w, [h])
fill(0);
ellipse(200, 100, 100, 50);
// //mickey
stroke(5);
//MICKEY MOUSE
//bounding box for mickey
fill(255);
rect(150, 175, 100, 125);
//black
fill (0)
//nose
ellipse(220, 230, 5, 5)
arc(210, 230, 20, 20, TWO_PI, PI);
//face
ellipse(200, 225, 30, 30)
//R ear
ellipse(200, 210, 25, 25)
//Left ear
ellipse(185, 210, 25, 25)
//body
ellipse(200, 250, 30, 30)
//feet!
ellipse((200+10), 275, 15, 10)
ellipse((200-10), 275, 15, 10)
//legs
//line(x1, y1, x2, y2)
strokeWeight(3);
//Right leg
line(204, 250, 205, 273);
//Left Leg
line(204-10, 250, 205-10, 273);
//line((400-204), 400-260, (400-210), 400-270);
//arm lines
line(195+40, 255, 175+15, 235);
//Left Arm
line(175, 250, 195, 235);
// stroke weight default
strokeWeight(1);
//hands circles
fill (240)
ellipse((175), 255, 15, 15)
ellipse((235), 255, 15, 15)
//yellow buttons
fill (220,0,0)
//shorts
arc(200, 250, 30, 30, TWO_PI, PI);
//arc(479, 300, 280, 280, PI, TWO_PI)
//rect(200, 175,50,50)
//button
noStroke()
fill (255,255,0)
ellipse(204, 255, 7, 7)
ellipse(196, 255, 7, 7)
}