davideriboli
2/15/2016 - 11:41 AM

Gatto&Topo #isia #processing

Gatto&Topo #isia #processing

/*
ISIA EDITORIA I
DI BELLA ADELE
MAGGIOLI GLORIA
PANEPINTO SARA
ZOPPI MICHELA
*/

void setup()
{size(500,500);
smooth();
}

void draw(){
background(#FFD771);
  
//faccia gatto
stroke(#FF6803);
fill(#FF6803);
ellipse(250,250,160,160);

//occhi gatto
stroke(#ffffff);
fill(#ffffff);
ellipse(220,220,40,40);
ellipse(280,220,40,40);

stroke(#050505);
fill(#050505);
ellipse(220,220,20,20);
ellipse(280,220,20,20);


//naso gatto
stroke(#FFFFFF);
strokeWeight(2);
fill(#FFB9B2);
triangle(240,240,260,240,250,260);


//bocca gatto
fill(#FF6803);
arc(250,260,80,80,0,PI);
stroke(#FFFFFF);
strokeWeight(2);
line(250,260,250,298);

//orecchie gatto
stroke(#FF6803);
fill(#FF6803);
triangle(190,200,200,160,225,180);
triangle(306,200,300,160,270,180);

//baffi sinistra
stroke(#050505);
strokeWeight(4);
line(190,250,130,230);
line(190,260,130,260);
line(190,270,130,290);

//baffi destra
stroke(#050505);
strokeWeight(4);
line(310,250,360,230);
line(310,260,360,260);
line(310,270,360,290);

//------------------topo------------------------

//coda
stroke(#C9C9C9);
fill(#C9C9C9);
strokeWeight(1);
line(120,120,160,130);

//orecchio1
strokeWeight(0);
stroke(#F1A9A0);
fill(#F1A9A0);
ellipse(90,70,30,30);

//corpotopo
strokeWeight(0);
stroke(#C9C9C9);
fill(#C9C9C9);
ellipse(100,100,60,60);

//orecchio2
strokeWeight(0);
stroke(#F1A9A0);
fill(#F1A9A0);
ellipse(100,70,30,30);

//occhio
strokeWeight(0);
stroke(0,0,0);
fill(0,0,0);
ellipse(85,90,5,5);

//naso
strokeWeight(0);
stroke(0,0,0);
fill(0,0,0);
ellipse(70,100,10,10);

}