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; } }

Comments

Popular posts from this blog