Post #2870345
2026-04-16 12:37 UTC
Making reaction-diffusion patterns amounts to solving a system of partial differential equations (PDEs) – the Gray-Scott model – that describe the simulated chemical reaction. The formula might look like Greek, but it's not too exotic from a math/coding standpoint.
Replies (1)
-
@matt_zucker@mastodon.social 2026-04-16 12:38
Making RD patterns that tile like wallpaper is easy – apply periodic boundary conditions (PBCs, https://en.wikipedia.org/wiki/Periodic_boundary_conditions) when solving the PDEs. PBCs are like the old-school Pac-Man arcade game: crossing the left side of the "screen" warps you to the right side, and ditto for top/bottom.