Here is my first shot a programming. I sketched a picture of a cyclops using basic shapes in Processing. Yey!!!
I decided to name this project ‘Thea’s Pet Cyclops‘ in honor of my classmate Thea Rae who has been helping me out with ICM. Take note that she’s an artist without any programming background but she’s kicking ass in class. It just goes to show that programming is for everybody.
Code:
size(300,300);
background(255);
rectMode(CENTER);
translate(150,150);
//head
fill(200);
noStroke();
rect(0,0,200,180,20);
//eyes
fill(230);
ellipse(0,0,140,115);
fill(255);
ellipse(0,0,100,100);
fill(180);
ellipse(0,0,50,50);
fill(0);
ellipse(0,0,25,25);
//mouth
fill(0);
ellipse(0,75,20,10);
//left ear
fill(200);
noStroke();
rect(-90,0,40,40,7);
fill(100);
noStroke();
rect(-103,0,5,25);
//right ear
fill(200);
noStroke();
rect(90,0,40,40,7);
fill(100);
noStroke();
rect(103,0,5,25);
//hair
fill(80);
ellipse(-85,-72,10,10);
fill(80);
ellipse(85,-72,10,10);
fill(80);
ellipse(0,-72,10,10);