Script function Palette:setColor ignores alpha

Hi, the following code should set the first palette color to semi-transparent red (alpha=128) but it sets just full opaque red. I tested other colors and palette indexes and it looks like setColor functions ignores alpha value of color.

Tested in Aseprite v1.2.16.3-x64, installed from Humble bundle distribution.

local spr = app.activeSprite
if not spr then return app.alert("There is no active sprite.") end

app.transaction(
function()
	local palette = spr.palettes[1]
	palette:setColor(0, Color{h = 0, s = 1, v = 1, a = 128})
end
)

app.refresh()
1 Like

Thanks for reporting this bug @assemblerbot! We’ll try to release a fix soon in Aseprite v.1.2.17.