Difference between revisions of "Image.rotate"

From MiniScript Wiki
Jump to navigation Jump to search
(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...")
 
m
Line 1: Line 1:
<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 outside of 0 to 360 are valid so long as they are increments of 90 degrees.
+
<c>[[Image]].rotate</c> 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 ===
 
=== Arguments ===

Revision as of 03:06, 18 January 2025

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)