Thursday, December 9, 2010

Tiles with holes

You can use Thickness, Line, JoinForm["Round"] and CapForm["Round"] to create aesthetically pleasing tiles as in previous posts, but what if you want them to be hollow? One approach is to draw two sets of tiles, large and small, then use Rasterize and overlay small tiles onto the alpha channel to make those areas transparent.

Keep in mind that this method is quite slow, it takes 20 seconds to render the image below. For a more efficient approach, you may need to use "Image"

The code to generate it is below. It's more complicated than needed for a simple diagram above because it's designed to allow branching tiles like here


1 comment: