Difference between revisions of "Bounds.corners"

From MiniScript Wiki
Jump to navigation Jump to search
(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...")
(No difference)

Revision as of 16:56, 8 July 2021

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