mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:54:44 -04:00
Opening .pxo files directly with Pixelorama is now also supported
Also added "-> void" to the methods that did not already have it
This commit is contained in:
parent
45a31faa7b
commit
9e7a3059f2
5 changed files with 25 additions and 20 deletions
|
@ -672,7 +672,7 @@ func scale3X(sprite : Image, tol : float = 50) -> Image:
|
|||
sprite.unlock()
|
||||
return scaled
|
||||
|
||||
func rotxel(sprite : Image, angle : float):
|
||||
func rotxel(sprite : Image, angle : float) -> void:
|
||||
|
||||
# If angle is simple, then nn rotation is the best
|
||||
|
||||
|
@ -783,7 +783,7 @@ func rotxel(sprite : Image, angle : float):
|
|||
sprite.unlock()
|
||||
aux.unlock()
|
||||
|
||||
func nn_rotate(sprite : Image, angle : float):
|
||||
func nn_rotate(sprite : Image, angle : float) -> void:
|
||||
var aux : Image = Image.new()
|
||||
aux.copy_from(sprite)
|
||||
sprite.lock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue