Readonly
TILE_An array of all available Girih tiles. Use them as templates for copy-and-paste.
Girih
Readonly
edgeThe edge length to use in this Girih pattern.
Girih
Readonly
tilesThe actual set of Girih tiles used in this Girih pattern.
Girih
Add a new tile to this Girih pattern.
The tile to add (instance must not already be part of this pattern).
addTile
Girih
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.
findPossibleAdjacentTiles
Girih
Private
initFind 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.
locateContainingTile
Girih
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).
moveTile
Girih
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.
turnTile
Girih
Classdesc
The Girih datastructure for generating patterns.
Requires
Vertex
Requires
GirihTile
Requires
GirihBowtie
Requires
GirihDecagon
Requires
GirihHexagon
Requires
GirihPenroseRhombus
Requires
GirihPentagon
Requires
GirihRhombus