Function Repository Resource:

# HatHexagons

Generate the hat tiling using combinatorial hexagons

 ResourceFunction["HatHexagons"][ind] plots the hexagonal initial condition for integer ind between 1 and 10. ResourceFunction["HatHexagons"][ind, depth] plots the resulting configuration of hexagons after applying the inflation rule an integer number of times, depth ≥ 0. ResourceFunction["HatHexagons"][ind, depth, rotation] rotates the resulting configuration by an angle rotation × π/3. ResourceFunction["HatHexagons"][ind,…, type] changes the view to show "Hat" or "Cluster" tiles instead of hexagons.

## Details

The substitution rule presented here is essentially the same as presented in the original paper "An Aperiodic Monotile". However, from a details point-of-view, the substitution system is more like what is found in the sequel article "A chiral aperiodic monotile" (fig 5.1) which features nine combinatorial hexagons.
Of the three views—"Hexagon", "Hat", and "Cluster"—only "Hexagon" and "Cluster" can generate plane-filling configurations. The "Hat" view leaves holes where the reflected hats would be. This happens because reflected hats are essentially edge-like with regard to the inflation rule.
Although there are ten distinct "Hat" hexagons, there are only eight distinct "Cluster" hexagons. This fact can be found by analysis of HatTrialityTree outputs, or proven by combinatorial analysis of branching multiway growth sequences.
HatHexagons accepts three options, ColorFunction, ColorRules, and ImageSize. When ImageSize is set to Scaled[size], integer size directly affects the edge length of depicted polygons rather than the entire image height and width.

## Examples

### Basic Examples (3)

Plot one of ten initial conditions as a hexagon:

 In:= Out= Compare different views of the same combinatorial hexagon:

 In:= Out= Obtain successively larger fragments of a hat-hexagon tiling:

 In:= Out= Compare with hat view:

 In:= Out= And compare with cluster view:

 In:= Out= ### Scope (2)

Plot the ten initial conditions:

 In:= Out= Their inflation images are not entirely unique:

 In:= Out= Each tile can be placed in six distinct orientations:

 In:= Out= ### Options (3)

Color the hat tiling using GrayLevel:

 In:= Out= In:= Out= The same style can also be introduced using ColorFunction:

 In:= Out= ### Possible Issues (1)

Only three views are available:

 In:=   Out= ### Neat Examples (1)

Show a hexagon substitution:

 In:= Out= 