float x; // X plane float y; // Y plane float r; // Red float g; // Green float b; // Blue float h; // Height float w; // Width float z; // Random() void setup() { size(300, 200); x = width/2; // starts body in middle y = 140; // starts below the screen frameRate(30); smooth(); } void draw() { z = random(255); r = (255); g = (255); b = (255); background(z); ellipseMode(CENTER); // Set shapes to CENTER rectMode(CENTER); // Set shapes to CENTER stroke(r,0,0); // Draw body fill(r,g,b); ellipse(x, y, w+43, h+104); // Draw body ellipse(x, y-30, w+88, h+50); // Draw head ellipse(x-15, y-30, w+16, h+16); // Left eye ellipse(x-13, y-30, w+5, h+5); // Left pupil ellipse(x+15, y-30, w+18, h+28); // Right eye ellipse(x+17, y-35, w+5, h+5); // Right pupil ellipse(x,y-10,w+20,h+10); // Draw mouth ellipse(x-12, y+54, w+23, h+13); // Draw legs 1 ellipse(x+12, y+54, w+23, h+13); // Draw legs 2 ellipse(x-33,y+10,w+25,h+10); // L. Arm ellipse(x-45,y+3,w+10.5,h+8); // L. fingers ellipse(x-45,y+18,w+10.5,h+8); ellipse(x-48,y+10,w+15,h+8); ellipse(x+33,y+10,w+25,h+10); // R.Arm ellipse(x+45,y+3,w+10.5,h+8); // R. fingers ellipse(x+45,y+18,w+10.5,h+8); ellipse(x+48,y+10,w+15,h+8); }