You can do this with pattern and mask. The pattern will limit you to 8x8 repeating pattern.
See https://devforum.play.date/t/matts-prototypes/826/3 where I do it - without mask - by drawing on a single line rectangle to get the classic "marching ants" effect.
If you need a larger repeating pattern then you can use an image table and mask.