Flag for dress shape. Spacebar for crab shape. "N" for no shape. Fills shape with fractal patterns seen on conus "textile" sea shells. This pattern maker uses diagonal lines whereas my ealier patterns used stamps of tiny triangles. Every time you click flag, the patterns is different because the randomly generated first row determines subsequent patterning, with some further random deviation you can set. First we make a row with a few red spots randomly distributed representing pigment generating chemicals. Then, white spaces next to only one red will be red in the next row (all other spaces are white). Each new row follows this simple change rule. In this code I use two different tiles, one slanting left and one slanting right.
Uses a simple rule of change: white clones next to only one red turn red, all other clones will be white. So, the space with a red clone will always be white in the next row, as will white clones next to two reds. Each row is permanent, but the next row is a variant of the previous, as on growing mollusc conus "textile" sea shells. The rules for generating are similar to a process in growing shells where the spread of pigment is like a spreading infection, with a period immunity--the analogy is that a space previously red becomes "immune" to becoming colored in the next row. Shells grow in this manner leaving a permanent record of pattern in the previous rows.