This Hilbert curve is implemented using a simple L-system. Click on the left and right sides of the figure to generate simple or more complex versions of the curve.

I made this script to generate the pattern for the inlaid top of a wooden music box that I’m constructing as a Christmas present. I’ll post a photo of the finished music box when it’s done.

Tags: fractal, intermediate, lsystem, recursion, symmetry