Image.rotate
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)