mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-01 07:59:48 +00:00
53b91a4bf4
More specifically, moved scale, crop, invert, desaturate and generate outline code to DrawingAlgos.gd. I am a little worried of DrawingAlgos.gd getting too big though.
9 lines
350 B
GDScript
9 lines
350 B
GDScript
extends ConfirmationDialog
|
|
|
|
|
|
func _on_ScaleImage_confirmed() -> void:
|
|
var width : int = $VBoxContainer/OptionsContainer/WidthValue.value
|
|
var height : int = $VBoxContainer/OptionsContainer/HeightValue.value
|
|
var interpolation : int = $VBoxContainer/OptionsContainer/InterpolationType.selected
|
|
DrawingAlgos.scale_image(width, height, interpolation)
|