the Twarchive

This is a record of a twitter thread, originally posted in 2019

Thew
@AmazingThew

Gray-Scott is coooooooooool

Thew
@AmazingThew

FWIW I can take basically zero credit for this; it's just a direct implementation of this page:

attached image

https://www.karlsims.com/rd.html
Reaction-Diffusion Tutorial

Thew
@AmazingThew

Seeding the center of the field is really cool bc usually everything stays symmetrical until the slightest imperfection manifests and then the whole thing goes wild

Thew
@AmazingThew

I'm no Stephen Wolfram or whatever but if I'm gonna guess this is probably due to the Laplacian term? The slightest wobble introduced by floating-point weirdness would get picked up and magnified exponentially due to taking the 2nd derivative on every iteration

Thew
@AmazingThew

this is a slow burn but man it's real satisfying watching these lil dudes go about their day

Thew
@AmazingThew

tried advecting the chemicals between sim steps

there's a bit of user input here to keep things evolving; it reaches a really boring steady state otherwise