/ Published in: Processing
Sketch realizzato nel 2010 da Valentina Rachiele e Davide Homitsu Riboli per gli studenti ISIA Urbino nell'ambito del corso "Matematica per il Design.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Ambiente void setup(){ size(300,300); smooth(); } //Loop void draw(){ background(255); noStroke(); fill(#CE9417); ellipse(mouseX,mouseY,100,100);//testa di gatto stroke(#A54C11); fill(#CE6017); triangle(mouseX-25,mouseY-75,mouseX-40,mouseY-50,mouseX,mouseY-50);//orecchio sx triangle(mouseX+25,mouseY-75,mouseX,mouseY-50,mouseX+40,mouseY-50);//orecchio dx stroke(#3B1902); line(mouseX-100,mouseY-20,mouseX-20,mouseY);//1° baffo sx line(mouseX+100,mouseY-20,mouseX+20,mouseY);//1° baffo dx line(mouseX-100,mouseY+20,mouseX-20,mouseY);//2° baffo a sx line(mouseX+20,mouseY,mouseX+100,mouseY+20);//2°baffo a dx noStroke(); fill(#779B2A); ellipse(mouseX-15,mouseY-15,10,10);//occhio sx ellipse(mouseX+15,mouseY-15,10,10);//occhio dx }
URL: http://www.isiaurbino.net/mathema/?p=567