Wireworld

Source
const empty = element("empty", "black")
const wire = element("wire", "yellow")
const head = element("head", "blue")
const tail = element("tail", "red")

          
wire.to(head).count(head, 1, 2)
head.to(tail)
tail.to(wire)

          
const wireworld = create()
Read the docs
@wonderyard/vivarium