← f_ notebook · Mirrors · Color / Tone

f_vf_erode, live ​

A water-and-pigment solver: the picture is wet onto the paper, a flow field pushes the water, and ink pools in the lows and drains from the highs.

The cell below steps the NumPy mirror that f_vf_erode'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_vf_erode · NumPy mirror (Pyodide) · not the Max patch
Downloads about 15 MB the first time (Python and NumPy).
  • view switches between the ink composite (outlet 0) and the thickness of the pigment on the paper (outlet 1).
  • flow runs the water downhill; on the flat frame it mainly shapes how far the wash spreads.
  • lift is how readily running water picks pigment off the paper (a square curve, 0.7 means the old 0.9 rate).
  • settle is how readily slow water puts pigment back down (a cubic curve), so less ink is carried far.
  • flood is the water depth a wetting adds; Strike re-wets with this much water.
  • feed keeps re-depositing the picture each step, so an animated second input continuously repaints; 0 is the wet-once wash.
  • fade returns pooled ink above what the picture holds toward the picture (only acts while feed is above 0).
  • steps per frame runs several solver steps per displayed frame; the wash dries in a few hundred steps, so this speeds it up.
  • The first input selects the flow field that pushes the water; the second is the picture being washed. Reseed re-wets.
  • Strike re-wets the current picture: fresh water, the paper pigment replaced.

reference doc · patcher · vf_erode_mirror.py

← DynamicsHalftone →