2025年9月5日金曜日

反応拡散(Gray-Scott)をp5.jsで実装:基礎とパラメータ

Reaction–Diffusion (Gray–Scott) — p5.js

Reaction–Diffusion (Gray–Scott) — p5.js

Drag on the canvas to inject reagent V. Adjust F, k, Du, Dv, dt, and steps/frame for worms, spots, or mitosis-like motifs.

Tip: Start with small dots, then wait. Explore neighborhoods around known presets.

反応拡散(Gray-Scott)モデルをp5.jsで実装します。feed(F)とkill(k)の調整で、spots/worms/mazeなどのパターンが再現可能。この記事では最小コードと表示のコツ、F・kの目安、つまずき対処をまとめ、すぐ試せるデモと参考リンクを付けました。 Pmneila Polymathic AI