← f_ notebook · Mirrors · ∇ Effects

f_particles, live ​

Scatters 16,384 dots and moves each one along a field every frame, so they gather where the field leads. The display splats the particle positions into an image; that splat is adapter display math, not a mirrored stage.

The cell below steps the NumPy mirror that f_particles's tests are written against, in your browser. It is the NumPy mirror, not the Max patch, and it is not claimed to match the patch bit for bit.

f_particles · NumPy mirror (Pyodide) · not the Max patch
Downloads about 15 MB the first time (Python and NumPy).
  • push chooses what drives the dots: field rides the input vector field; descend slides down the input's R channel taken as a scalar; ascend climbs toward its bright level.
  • speed is the step per frame, as a percent of the frame height.
  • inertia is how long each dot's velocity keeps its previous direction; higher values coast and overshoot.
  • respawn re-places this percent of the dots at their seed positions each frame, loosening the piles.
  • ease only matters in descend and ascend: the push shrinks near the dark (or bright) attractor level.
  • gain brightens the density image only; the particle motion is untouched.
  • steps per frame runs several update steps per displayed frame, so the dots evolve faster.
  • The input select picks which synthetic field the dots follow; the display shows the field beneath the dots.
  • Reseed returns every dot to a new seed scatter.

reference doc · patcher · particles_mirror.py

← GlowResonate →