On a hexagonal (isometric) grid, use 3 colors to show the 3 planes that are orthogonal to each other. This results in an interlocking pattern.
- The Code can be found here
- Every hinges on getting the basic tile right. I ended up overly complicating things with this tile:
This can be simplified.
- Note that the grid has to of the "point-topped" hexagons type. Flat-topped won't work (at least not easily)
Run interlocking.py
to recreate these images. Please run this from inside the Processing IDE, since it uses Processing.
For most of these, I am using the Processing
Framework. Since I mostly code in Python, I use the Python extension of Processing, which is not as popular as its Java version. Also, I sometimes create small resuable code segments which I use in multiple projects. I'm sharing all my genart code, in case others find it useful.
Ram