An Ashlar pattern generator on a grid