Image.flip
Jump to navigation
Jump to search
Image.flip
flips an image in memory, either vertically or horizontally.
Arguments
Parameter Name | Type | Default Value | Meaning |
---|---|---|---|
vertical | boolean | false | flips the image vertically when true and horizontally when false |
Example
img = file.loadImage("/sys/pics/Wumpus.png")
img.flip false
view img
After running the above code, img
refers to a horizontally-flipped version of the standard Wumpus image.