Introduzione a random


/ 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. //Creo l'ambiente
  2. size(200,200);
  3. background(255);
  4. smooth();
  5.  
  6. //Estraggo un colore a caso
  7. fill(random(255),random(255),random(255));
  8.  
  9. //Che uso per riempire una circonferenza
  10. ellipse(width/2, height/2,width/2, height/2);

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.