/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://bard117f12.sketchpad.cc/sp/pad/view/ro.gvdtoBWd7sa/rev.416
*
* authors:
* Christeina Wade
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
//Christeina Wade, 09/23/12,[email protected]
/*For this project I wanted to take a different approach than trying to map out my physical features digitally in this program. So I decided to make one of my favorite cartoon characters. I used basic ellipse and rectangles to make to this bird creature. To make its attack convincing I used random for the RGB colors to have it flash on the right side of the screen. The process was different than design blocks because everything was manually written in rather than dragging and only changing the dimensions.
*/
float r;
float g;
float b;
void setup(){
size(400,600);
smooth();
frameRate(30);
}
void draw(){
background(255);
ellipseMode(CENTER);
rectMode(CENTER);
//head
stroke(0);
fill(0,100,0,200);
ellipse(mouseX,mouseY-30,75,75);
//head piece
stroke(0);
fill(255,0,0,200);
ellipse(mouseX,mouseY-75,15,45);
//beak
stroke(0);
fill(255,255,0);
ellipse(mouseX,mouseY-15,15,30);
//eyes
fill(mouseX,0,mouseY);
ellipse(mouseX-19,mouseY-30,16,32);
ellipse(mouseX+19,mouseY-30,16,32);
//wings
stroke(0);
fill(255,255,0);
ellipse(mouseX-55,mouseY-35,45,35);
ellipse(mouseX+55,mouseY-35,45,35);
//left wing design
stroke(0);
fill(255,0,0,200);
rect(mouseX-68,mouseY-45,15,10);
rect(mouseX-68,mouseY-25,15,10);
fill(0);
rect(mouseX-55,mouseY-35,10,35);
rect(mouseX-68,mouseY-35,18,10);
//right wing design
stroke(0);
fill(255,0,0,200);
rect(mouseX+68,mouseY-45,15,10);
rect(mouseX+68,mouseY-25,15,10);
fill(0);
rect(mouseX+55,mouseY-35,10,35);
rect(mouseX+68,mouseY-35,18,10);
//legs
stroke(0);
fill(255,0,0,200);
rect(mouseX-10,mouseY+10,10,20);
rect(mouseX+10,mouseY+10,10,20);
//background
if (mouseX>=mouseY){
r=random(200);
g=random(190);
b=random(210);
background(r,g,b);
//Command
text("NATU USE CONFUSION!!", 200,200);
}
}