xxxxxxxxxx
let t, dt;
function setup() {
createCanvas(windowWidth, windowHeight);
t = 0;
t = 0.3;
p = new particella ( 10, 10, 5, 2, 1, 2, 150);
p1 = new particella ( 80, 0, 1, 2, 3, 2, 70);
}
function draw() {
background(186, 111, 227);
p.disegna ();
p.mru (2);
p.universoelastico ();
p1.disegna ();
p1.mru (1)
p1.mrua (1);
p1.universoelastico ();
}