Bounds.corners

From MiniScript Wiki
Revision as of 16:56, 8 July 2021 by JoeStrout (talk | contribs) (Created page with "<c>Bounds.corners</c> returns the four corners of the bounds as a list of <c>[x, y]</c> pairs. === Usage Notes === The result of this call may be passed directly to Pi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Bounds.corners returns the four corners of the bounds as a list of [x, y] pairs.

Usage Notes

The result of this call may be passed directly to PixelDisplay.drawPoly or PixelDisplay.fillPoly, assuming the bounds is in the same coordinate system as that display.

Example