/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://bard117s14.sketchpad.cc/sp/pad/view/ro.Z3mhVGEF6d9/rev.1274
*
* authors:
* Anna Wheeler
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
//Anna Wheeler Self Portrait 1
//[email protected]
//2.3.2014
//COMMENT: Although it appears that I wrote this code with minimal hiccups, the first iteration of this self portrait was very much a process of trial and error. However, because my laptop is currently out of commission, I did the first version of this last class in the RKC on one of the lab computers, then, because I couldn't access the internet on said computer, proceeded to copy down what code I had with pen and paper. While that was probably not the easiest or most efficient method,it still worked. In this self portrait, I tried to familiarize myself with the RGB system of colors, as well as learn to orient myself in Processing in a natural, mathematic kind of way. Although faces are not as symmetrical as this one, the assumed mathematical symmetry came somewhat naturally to me in the framework of this 600x600 pixel canvas. Because of the way that I parced out my code, (into eyeballs, etc., ) the only variable present in the actual running of the code was the positioning of the various facial features, and their relative size. The nose was the hardest part. I decided it would be a fool's errand to attempt to make blonde curly hair that did not look like yellow polka dots at this stage in my skill-level of coding in Processing;
size(600,600)
background(247,230,230)
//left eyeball
fill(255)
ellipse(150,150,150,90)
//left iris
fill(112,118,41)
ellipse(150,150,90,90)
//left pupil
fill(0)
ellipse(150,150,40,40)
//right eyeball
fill(255)
ellipse(450,150,150,90)
//right iris
fill(112,118,41)
ellipse(450,150,90,90)
//right pupil
fill(0)
ellipse(450,150,40,40)
//right eyebrow
stroke(95,57,26)
strokeWeight(10)
line(375,55,525,70)
//left eyebrow
line(75,75,225,80)
//mouth
stroke(113,37,48)
fill(113,37,48)
ellipse(width/2,500,75,50)
//nose (god help us all)
stroke(252,189,171)
strokeWeight(8)
line(275,200,275,380)
line(325,200,325,380)
fill(245,198,185)
ellipse(300,380,65,45)