// Project 1 ,
// the lonely fishermen
// setup
void setup()
{//grid size
size(400,400);
ellipseMode(CENTER);
rectMode(CORNERS);
}
void draw(){
background(255);
//water
fill(0,204,255);
rect(0,0,400,400);
//grass
fill(153,255,51);
rect(0,250,180,400);
//cooler
fill(255,255,255); //white
rect(40,320,140,330);
fill(255,51,0); //dark red
rect(40,330,140,370);
// head
fill(252,243,207);
rect(40,120,110,180);
// eye rectangle backside of the eye
noStroke();
fill(255,255,255);
rect(90,130,100,140);
stroke(0);
// eye circle (iris)
fill(52,152,219);
ellipse(95,135,5,5);
//hair for head blonde/yellow
fill(255,255,0);
rect(40,120,60,170);
//hat or cap red cap
ellipseMode(CORNERS);
fill(255,0,0);
ellipse(40,109,135,130);
rect(40,120,110,130);
stroke(255,0,0);
line(41,120,110,120);
line(110,120,110,129);
stroke(0);
// mouth line
line(80,160,110,160);
// neck
fill(252,243,207);
rect(60,180,90,200);
// tourso
fill(17,122,101);
rect(50,200,100,300);
// arm
fill(252,243,207);
rect(80,220,140,240);
//hand
line(138,223,130,223);
line(138,227,130,227);
line(138,231,130,231);
line(138,235,130,235);
// sleave on tourso
fill(22,160,133);
ellipse(70,210,90,250);
// pants leg
fill(81,90,90);
rect(60,300,90,380);
// boots
fill(153,102,51);
rect(65,380,110,400);
stroke(200);
line(100,380,100,390);
line(95,380,95,390);
line(90,380,90,390);
line(85,380,85,390);
line(80,380,80,390);
// fishing line
stroke(153,153,102);
strokeWeight(3); //skightly thinkcer
line(283,80,mouseX,mouseY-25);
// fishing rod
strokeWeight(2);
stroke(0);
fill(153,102,51);
quad(140,220,130,220,280,80,285,80);
// fish
fill(255,204,0);
strokeWeight(1);
ellipseMode(CENTER);
ellipse(mouseX, mouseY,10,20);
noStroke();
triangle(mouseX - 20,mouseY +40,mouseX , mouseY +10, mouseX +20, mouseY +40);
ellipse(mouseX, mouseY,20,60);
strokeWeight(2);
stroke(255,204,0);
// fish eye
fill(0);
stroke(0);
strokeWeight(4);
point(mouseX + 6, mouseY - 8);
strokeWeight(1);
// lilly pad
fill(88,214,141);
stroke(0);
ellipse(80 + (mouseX * 0.3),40,120,40);
noStroke();
fill(20,90,50);
ellipse(80 + (mouseX * 0.3),40,115,35);
fill(88,214,141);
ellipse(80 + (mouseX * 0.3),40,110,30);
fill(20,90,50);
ellipse(80 + (mouseX * 0.3),40,40,5);
// block of area so the fish can look like its in the water
fill(0,204,255);
rect(180,320,400,400);
}
// Fisher man says " ha caught another one"
void mousePressed() {
println("Ha caught another one");
}