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:
parent
fede2d8e6f
commit
77f6bcf07b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue