Create a new empty Girih pattern.
An array of all available Girih tiles. Use them as templates for copy-and-paste.
The edge length to use in this Girih pattern.
The actual set of Girih tiles used in this Girih pattern.
Add a new tile to this Girih pattern.
The tile to add (instance must not already be part of this pattern).
Find all possible adjadent tiles and their locations (type, rotation and offset). The function will return an array of all possible tiles matching at the given tile and edge.
The index of the tile to rotate.
The index of the tile's edge.
Initialize the TILE_TEMPLATES array.
The edge length to use for the template tiles.
Find that tile (index) which contains the given position. First match will be returned.
The index of the containing tile or -1 if none was found.
Move that tile the mouse is hovering over. The move amounts are abstract numbers, 1 indicating one unit along each axis.
The index of the tile to rotate.
The amount to move along the x axis (in pixels).
The amount to move along the y axis (in pixels).
Remove the tile at given array position. The index must be inside valid bounds.
The index in the tiles
Array.
Turn the tile the mouse is hovering over. The turnCount is ab abstract number: -1 for one turn left, +1 for one turn right. The turning angle is defined by the tile with the lowest turn symmetry: the Decagon, so angle is 36°.
The index of the tile to rotate.
A discrete number indicating the number of turn steps.
Generated using TypeDoc
The Girih datastructure for generating patterns.
Vertex
GirihTile
GirihBowtie
GirihDecagon
GirihHexagon
GirihPenroseRhombus
GirihPentagon
GirihRhombus