Introduzione a void


/ 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. /* Prima parte*/
  2.  
  3. //Creo l'ambiente
  4. size(300,300);
  5. background(255);
  6.  
  7. //Creo un segmento a caso con l'origine nel centro della finestra
  8. line(width/2,height/2,random(width),random(height));
  9.  
  10. /* Seconda parte*/
  11.  
  12. /*
  13. //Creo l'ambiente
  14. void setup() {
  15. size(300,300);
  16. }
  17.  
  18. //Creo il loop
  19. void draw() {
  20. background(255);
  21. line(width/2,height/2,random(width),random(height));
  22. }
  23. */

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.