Skip to content

Commit 77f6bcf

Browse files
Fix Palette.convert_to_image() storing wrong colors in the image
Similar fix to #1108.
1 parent fede2d8 commit 77f6bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Palette/Palette.gd

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,5 +362,5 @@ func convert_to_image() -> Image:
362362
var image := Image.create(colors_max, 1, false, Image.FORMAT_RGBA8)
363363
for i in colors_max:
364364
if colors.has(i):
365-
image.set_pixel(i, 0, colors[i].color)
365+
image.set_pixel(i, 0, Color(colors[i].color.to_html()))
366366
return image

0 commit comments

Comments
 (0)