Posted By


Homitsu on 06/03/10

Tagged


Statistics


Viewed 362 times
Favorited by 0 user(s)

Ancora sulle variabili


/ Published in: Processing
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. //La misura d'un soffio
  2. int cerchioX=10;
  3.  
  4. //Il solito ambiente
  5. void setup (){
  6. size(200,200);
  7. smooth();
  8. }
  9.  
  10. //Il solito loop
  11. void draw(){
  12. background(255);
  13. noStroke();
  14. //fill(#AD3D3D);
  15. ellipse(width/2,height/2,cerchioX,cerchioX);
  16. }
  17.  
  18. //Azione su click
  19. void mousePressed(){
  20. //Cambia il colore
  21. fill(random(255),random(255),random(255));
  22. //E il palloncino si gonfia
  23. cerchioX=cerchioX+10;
  24. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.