xxxxxxxxxx
52
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
}
function setup() {
createCanvas(400, 400);
background(220);
}
function draw() {
background(220); // Light gray background
// Draw ninja head
fill(255,255,255); // Black color for ninja outfit
ellipse(200, 200, 145, 145); // Head
// Draw ninja's face (only the eyes area)
fill(210, 180, 140); // Dark gray for face area
rect(150, 180, 100, 40, 20); // Face mask (rectangle with rounded edges)
// Draw eyes
fill(255); // White for eyes
ellipse(175, 200, 20, 20); // Left eye
ellipse(225, 200, 20, 20); // Right eye
// Draw ninja body
fill(255, 255, 255); // Black color for ninja outfit
rect(160, 250, 80, 100, 20); // Body
// Draw ninja belt
fill(255 , 0 , 0); // color for the belt
rect(160, 310, 80, 10); // Belt
// Draw arms
fill(255, 255, 255);
ellipse(145, 290, 30, 90); // Left arm
ellipse(255, 290, 30, 90); // Right arm
// Draw legs
fill(255,255,255);
ellipse(180, 360, 25, 60); // Left leg
ellipse(220, 360, 25, 60); // Right leg
// Draw small headband knot
fill(255, 0 , 0);
rect(130, 160, 140, 10, 20);
noLoop(); // Stop draw loop
}