Adjust % infected at start and % random recovery. Find settings you like. If % recovery = 0 and % infected is very low, you can get a Sierpinski fractal triangle. This infection and recovery process makes fractal triangles and textile crab shell patterns. I added color to my: https://scratch.mit.edu/projects/1006558697/
Added color to my "triangles of fractal infection." Better pen: https://turbowarp.org/1095261335?hqpen Starts with a few infected (colored) in 1st row. Any infected is recovered in the next row, but infects neighbors in that next row. A process like this downward infection and recovery makes a similar pattern seen on "textile" crab shell. Starting with 1 makes a fractal (Sierpinski) triangle, when recovery is never random (set to 0). Any space beside one colored dot becomes "infected" in the next row. But two colored inhibit the infection. Any infected is recovered by the time we create the next row, as in a shell growing from a top line of cells. The same infection and recovery process, if starting from one dot, makes a fractal triangle (Sierpinski's triangle). I've been doing these shell patterns for years and have a web page and kit devoted to it.