1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Fix Palette.convert_to_image() storing wrong colors in the image

Similar fix to #1108.
This commit is contained in:
Emmanouil Papadeas 2024-11-22 15:07:16 +02:00
parent fede2d8e6f
commit 77f6bcf07b

View file

@ -362,5 +362,5 @@ func convert_to_image() -> Image:
var image := Image.create(colors_max, 1, false, Image.FORMAT_RGBA8)
for i in colors_max:
if colors.has(i):
image.set_pixel(i, 0, colors[i].color)
image.set_pixel(i, 0, Color(colors[i].color.to_html()))
return image