The x coordinate
The y coordinate
The width of the 2-D representation (the grid height)
The corresponding index
Draws a rounded rectangle Adapted from https://stackoverflow.com/a/3368118/2234742
The canvas context to draw on
The x coordinate at which to draw the rounded rectangle
The y coordinate at which to draw the rounded rectangle
The width of the rounded rectangle to draw
The height of the rounded rectangle to draw
The border radius of the rounded rectangle
Whether the rectangle should be filled
Whether the rectangle should be stroked
Gets the current devicePixelRatio in a performant way
The device pixel ratio
Converts a 1-D array index into an (x, y) coordinate in its corresponding 2-D representation
the 1D array index
The width of the 2-D representation (the grid height)
Generated using TypeDoc
Converts 2-D coordinates to their corresponding index in a 1-D array representation