Search⌘ K

Image Masks

Explore how to use image masks to define maze boundaries by loading PNG images. Learn to convert pixels to mask states for flexible maze shapes, enabling design through image editors and easier larger templates.

Introducing image masks

These masks were previously compared to images, where each cell is like a pixel that we turn on or off. It might make sense, then, to use actual images for the templates, where pixels of a particular color (say, black) are considered off, and everything else is considered on. This would let us design our templates using an image editor, which should make larger masks a lot easier.

Let’s ...