f_cores, live
Finds the center of each swirl in a simulated Complex Ginzburg-Landau field and puts a dot on it.
The cell below steps the NumPy mirror that f_cores'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.
Downloads about 15 MB the first time (Python and NumPy).
mark sizesets the radius of each dot as a percent of the frame height (it stops growing past 16 texels, as in the module).softsets the edge softness of the dots; 0 is a hard disc.chargeshows both dot colors, only the counterclockwise swirls (plus), or only the clockwise ones (minus).viewswitches between the white marks, the plus/minus colored signed marks, and the field the marks come from.field eps,field c1andfield rateshape the simulated Ginzburg-Landau field itself: more chaos means more cores.steps per frameadvances the field several solver steps per displayed frame so it evolves at a watchable speed.- Reseed starts the field again from new noise.
- The readout line shows the raw core count the detector finds.
reference doc · patcher · cores_count_mirror.py · cores_mirror.py