From 77f6bcf07bd80bc042e478bb883d05900cebe436 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:07:16 +0200 Subject: [PATCH] Fix `Palette.convert_to_image()` storing wrong colors in the image Similar fix to #1108. --- src/Palette/Palette.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Palette/Palette.gd b/src/Palette/Palette.gd index e2f480f78..281384dd6 100644 --- a/src/Palette/Palette.gd +++ b/src/Palette/Palette.gd @@ -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