/** Downloadbots by Guru */ void setup() { size(650, 300); smooth(); noLoop(); } void draw() { bot(50, color( 255, 255, 0 )); bot(200, color( 0, 0, 128 )); bot(350, color( 0, 128, 0 )); bot(500, color( 255, 0, 0 )); } void bot( int x, color c ) { fill(255); strokeWeight(1); //head rect( x, 70, 100, 50 ); //body rect( x, 130, 100, 150 ); //neck rect( x + 40, 120, 20, 10 ); //hands rect( x - 10, 135, 10, 70 ); rect( x + 100, 135, 10, 70 ); // feet rect( x + 5, 280, 20, 10 ); rect( x + 75, 280, 20, 10 ); //antenna line( x + 10, 40, x + 30, 70 ); line( x + 90, 40, x + 70, 70 ); fill( c ); ellipse( x + 10, 40, 10, 10 ); ellipse( x + 90, 40, 10, 10 ); //face fill(0); ellipse( x + 25, 85, 10, 10 ); ellipse( x + 75, 85, 10, 10 ); strokeWeight(3); curve( x + 25, 95, x + 25, 105, x + 75, 105, x + 75, 95 ); }