Gestire le Trasparenze


/ 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(400,400);
  3. background(255);
  4. smooth(); //Con le circonferenze, meglio usare sempre antialias
  5.  
  6. fill(255,0,0,255); //Alpha alla massima opacita'
  7. ellipse(width/3,height/2,width/3,height/3);
  8.  
  9. fill(0,255,0); //Alpha non impostato
  10. ellipse((width/3*2),height/2,width/3,height/3);
  11.  
  12. fill(0,0,255,125); //Alpha circa al 50%
  13. ellipse(width/2,height/2,width/3,height/3);

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.