mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 17:34:43 -04:00
Add palette import from a PNG file
This commit is contained in:
parent
b3a8eb6d84
commit
3b16b727b9
4 changed files with 39 additions and 1 deletions
|
@ -50,6 +50,12 @@ func get_color_data(index : int) -> String:
|
|||
|
||||
return result
|
||||
|
||||
func has_color(color: Color) -> bool:
|
||||
for palette_color in colors:
|
||||
if palette_color.color == color:
|
||||
return true
|
||||
return false
|
||||
|
||||
func set_color_data(index : int, new_color : String) -> void:
|
||||
if index < colors.size():
|
||||
colors[index].data = new_color
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue