Image.rotate

From MiniScript Wiki
Revision as of 03:06, 18 January 2025 by Redspark (talk | contribs)
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. Values 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)