Image.flip

From MiniScript Wiki
Revision as of 02:50, 18 January 2025 by Redspark (talk | contribs) (Created page with "<c>Image.flip</c> sets the image to be drawn either flipped vertically or horizontally. === Arguments === {| class="wikitable" |- ! Parameter Name !! Type !! Default Val...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Image.flip sets the image to be drawn either flipped vertically or horizontally.

Arguments

Parameter Name Type Default Value Meaning
direction boolean true flips the image horizontally when true and vertically when false

Example

img = file.loadImage("/sys/pics/Wumpus.png")
img.flip(true)