stateRender

open fun stateRender(colour: Color, start: Vector2f, offset: Vector2f, size: Vector2f, text: String, num: Int, active: Int)

Renders a series of hexagons used to indicate an active state out of a series of possible states.

Parameters

colour

Colour

start

Root position

offset

Offset of HUD element from root location

size

Dimensions of element (hexagons will be scaled to fit)

text

Text to render

num

Number of states (hence number of hexagons)

active

Index of active state (other hexagons will appear darker)