Hexagon Grid
fun HexagonGrid( posX: Number = 0, posY: Number = 0, width: Number = 0, height: Number = 0, visual: Visual = Visual.EMPTY, coordinateSystem: HexagonGrid.CoordinateSystem = CoordinateSystem.OFFSET, orientation: HexOrientation = HexOrientation.POINTY_TOP)
Content copied to clipboard
Parameters
pos X
The x-coordinate of the hexagon grid's position on the screen. Default is 0.
pos Y
The y-coordinate of the hexagon grid's position on the screen. Default is 0.
width
The width of the hexagon grid. It grows dynamically by the amount hexagons in it.
height
The height of the hexagon grid. It grows dynamically by the amount hexagons in it.
visual
The visual representation of the hexagon grid. Default is an empty visual.
coordinate System
The coordinate system to use for the grid. Default is CoordinateSystem.OFFSET
.
orientation
The orientation of the hexagons in the grid. Default is HexOrientation.POINTY_TOP
.