Skip to content

Instantly share code, notes, and snippets.

View rformato's full-sized avatar

Renato Formato rformato

View GitHub Profile
var creaParticelle = function() {
var x,y = hc/2;
for(var i=0;i<numParticelle;i++) {
x = Math.random()*wc;
part[i] = new Particella(x,y, Math.random()*5.5+0.5, colori[Math.round(Math.random()*(numColori-1))]);
part[i].setRif(x,y);
}
}
var setup = function() {