Comments

Log in with itch.io to leave a comment.

A cool pattern using convolutions


code:

<sequence values = "BW" origin="True">

<one in="BWB" out="WWW" steps="1"/>

<convolution neighborhood="Moore" periodic="True">

<rule in ="B" out="W" sum="2" values="W"/>

<rule in="W" out="B" sum="2,4" values="B"/>

</convolution>

</sequence>

(2 edits)



Generates something that kind of looks like a city block

could be cleaner, gonna tweak the code

code:

<sequence values="BWACR">

<prl in="B" out = "A"/>

<prl in="A *" out = "B *" symmetry = "()"/>

<one in = "A" out = "W" steps="1"/>

<markov>

<prl in ="AAA/AWA" out="AWA/AWA"/>

<one in= "AWA/AWA/AWA/AWA/AWA/AWA/AWA" out="AWA/AWA/AWA/WWW/AWA/AWA/AWA"/>

</markov>

<markov>

<one in="A" out = "C" steps="1"/>

<all in ="AC" out = "CC"/>

<prl in = "B C" out = "C C" symmetry="()" p="0.16"/>

<prl in = "C" out = "R" symmetry="()"/>

</markov>

<all in="RR BR" out ="RR RR"/>

<prl in="R" out = "W"/>

</sequence>



A simple pattern i made while learning markov junior:
code:

<sequence values="BW" origin = "True">

<prl in="BWB" out = "WBW"/>

</sequence>