Posted By

Homitsu on 06/03/10


Tagged

Processing


Versions (?)

Ancora sul drag


 / Published in: Processing
 

URL: http://www.isiaurbino.net/mathema/?p=567

Sketch realizzato nel 2010 da Valentina Rachiele e Davide Homitsu Riboli per gli studenti ISIA Urbino nell'ambito del corso "Matematica per il Design.

  1. //Ambiente
  2. void setup(){
  3. size(300,300);
  4. smooth();
  5. }
  6.  
  7. //Loop
  8. void draw(){
  9. background(255);
  10.  
  11. noStroke();
  12. fill(#CE9417);
  13. ellipse(mouseX,mouseY,100,100);//testa di gatto
  14. stroke(#A54C11);
  15. fill(#CE6017);
  16. triangle(mouseX-25,mouseY-75,mouseX-40,mouseY-50,mouseX,mouseY-50);//orecchio sx
  17. triangle(mouseX+25,mouseY-75,mouseX,mouseY-50,mouseX+40,mouseY-50);//orecchio dx
  18.  
  19. stroke(#3B1902);
  20. line(mouseX-100,mouseY-20,mouseX-20,mouseY);//1° baffo sx
  21. line(mouseX+100,mouseY-20,mouseX+20,mouseY);//1° baffo dx
  22. line(mouseX-100,mouseY+20,mouseX-20,mouseY);//2° baffo a sx
  23. line(mouseX+20,mouseY,mouseX+100,mouseY+20);//2°baffo a dx
  24.  
  25. noStroke();
  26. fill(#779B2A);
  27. ellipse(mouseX-15,mouseY-15,10,10);//occhio sx
  28. ellipse(mouseX+15,mouseY-15,10,10);//occhio dx
  29. }

Report this snippet  

You need to login to post a comment.