woensdag 7 oktober 2009

Processing Snowman


Look how cute, my little snowman. I'm having some trouble giving him a mouth though, the arc(..) function keeps bending the wrong way, I tried shifting around the x and y parameters and the start and stop parameters, I even made the height a -30, but then it just disappeared :(
Anybody got any tips on making my snowman smile?

This is my first processing creation by the way, full code is below.
// frame
size(200,200);
background(255);
rectMode(CENTER);

// body
stroke(0);
fill(250);
ellipse(100,110,100,100);

// head
fill(250);
ellipse(100,50,60,60);

// eyes
fill(0);
ellipse(92,42,5,5);
ellipse(108,42,5,5);

// nose
fill(255,200,0);
ellipse(100,52,7,7);

// arms
stroke(0);
line(150,100,160,80);
line(50,100,40,80);

println("Let it Snow!");

Geen opmerkingen:

Een reactie posten