Hilbert Curves
The figure below illustrates the recursive rules
that are used to construct the Hilbert Curves.
The first rule means:
- To draw A(1),
- draw D(0) (which is just a point),
- draw a line one unit to the left,
- draw A(0) (which is just a point),
- draw a line one unit down,
- draw A(0) (which is just a point),
- draw a line one unit to the right,
- draw B(0) (which is just a point).
- To draw A(2),
- draw D(1),
- draw a line one unit to the left,
- draw A(1),
- draw a line one unit down,
- draw A(1),
- draw a line one unit to the right,
- draw B(1).
- ...
- To draw A(n),
- draw D(n-1),
- draw a line one unit to the left,
- draw A(n-1),
- draw a line one unit down,
- draw A(n-1),
- draw a line one unit to the right,
- draw B(n-1).