Image.rotate

From MiniScript Wiki
Revision as of 03:02, 18 January 2025 by Redspark (talk | contribs) (Created page with "<c>Image.rotate</c> sets the image to be drawn at 90 degree increments. All other degree values will be ignored. Positive or negative values as well as those that fall o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Image.rotate sets the image to be drawn at 90 degree increments. All other degree values will be ignored. Positive or negative values as well as those that fall outside of 0 to 360 are valid so long as they are increments of 90 degrees.

Arguments

Parameter Name Type Default Value Meaning
degrees number 90 rotates the image by 90 degree increments

Example

img = file.loadImage("/sys/pics/Wumpus.png")
img.rotate(180)