This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# License: MIT | |
# | |
# Slice a sprite into 9 pieces, and render them to the output area, scaled to fit. | |
# | |
# @note Slice coordinates are from the TOP LEFT of the sprite. Output coordinates are from the normal Bottom Left. | |
# | |
# @param args [Hash] The args hash | |
# @param path [String] The path to the sprite | |
# @param x1 [Integer] The X coordinate of the first vertical slice | |
# @param x2 [Integer] The X coordinate of the second vertical slice |
OlderNewer