class Neuron { float x, y, r, rx, ry; color c; Neuron() { x = random(512); y = random(384); r = random(15, 40); c = color(random(100), random(100), random(100)); } void mover () { float stepSize = 1; float angle = random(TWO_PI); x += stepSize * cos (angle); y += stepSize * sin (angle); } void pintar () { fill(c); ellipse(x, y, rx, ry); } void vibrar() { float u1 = random(1.0); float u2 = random(1.0); rx = r + 2.0 * sqrt(-2.0 * log(u1)) * cos(TWO_PI * u2); ry = r + 2.0 * sqrt(-2.0 * log(u1)) * sin(TWO_PI * u2); } }