buildFilledRectangle

fun buildFilledRectangle(topLeft: Position, size: Size): DefaultShape

Creates the points for a filled 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 fill the whole grid. Note that all resulting shapes will be offset to the top left (0x0) position!

See also

Sources

(source)
Link copied to clipboard