let x = 0;
function setup() {
createCanvas(400, 400);
}
function draw() {
background(135, 206, 235); // Sky blue background
fill(0, 100, 0); // Green for grass
rect(0, 300, 400, 100);
// Drawing the girl
fill(255, 182, 193); // Skin color
ellipse(x, 200, 50, 60); // Head
fill(0); // Hair color
ellipse(x, 190, 40, 50); // Hair
fill(255); // Eye color
ellipse(x - 10, 190, 5, 5); // Left eye
ellipse(x + 10, 190, 5, 5); // Right eye
fill(255, 165, 0); // Sari orange
rect(x - 20, 250, 40, 50); // Sari body
fill(0, 0, 255); // Sari blue
triangle(x - 20, 250, x + 20, 250, x, 200); // Sari cape effect
// Movement
x = x + 2;
if (x > width) {
x = 0;
}
}
Toolplus - All in One Tools 🌙 Mode Toolplus Text Image PDF SEO Color Converter Fun Text Tools 🔡 Case Converter More Text Tools Image Tools More Image Tools PDF Tools More PDF Tools SEO Tools More SEO Tools Color Tools More Color Tools Converter Tools More Converter Tools Fun Tools More Fun Tools © 2025 Toolplus - All rights reserved
Comments
Post a Comment