buildRectangle

fun buildRectangle(topLeft: Position, size: Size): Shape

Creates the points for the outline of a rectangle.

For example, calling this method with size being the size of a grid and top-left value being the terminals top-left (0x0) corner will create a shape which when drawn will outline the borders of the grid. Note that all resulting shapes will be offset to the top left (0x0) position!

See also

Sources

(source)
Link copied to clipboard