Hexagon View
fun HexagonView( posX: Number = 0, posY: Number = 0, size: Number = DEFAULT_HEXAGON_SIZE, visual: Visual, orientation: HexOrientation = HexOrientation.POINTY_TOP)
Content copied to clipboard
Creates a HexagonView with a given Visual.
Parameters
pos X
Horizontal coordinate for this HexagonView. Default: 0.
pos Y
Vertical coordinate for this HexagonView. Default: 0.
size
Represents the radius of the outer circle of the HexagonView all six points lie on. Default: DEFAULT_HEXAGON_SIZE.
visual
Visual for this HexagonView.
orientation
Orientation of the HexagonView. Default: HexOrientation.POINTY_TOP.