mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Test fix for Palette:setEntry() when alpha channel is involved
This commit is contained in:
parent
ade7285ff6
commit
b43e21baba
@ -29,6 +29,12 @@ do
|
|||||||
assert(p:getColor(1) == Color(250, 4, 30))
|
assert(p:getColor(1) == Color(250, 4, 30))
|
||||||
assert(p:getColor(2) == Color(240, 3, 20))
|
assert(p:getColor(2) == Color(240, 3, 20))
|
||||||
assert(p:getColor(3) == Color(210, 2, 10))
|
assert(p:getColor(3) == Color(210, 2, 10))
|
||||||
|
|
||||||
|
-- Check alpha
|
||||||
|
local c = Color{red=100, green=50, blue=10, alpha=128}
|
||||||
|
p:setColor(3, c)
|
||||||
|
assert(p:getColor(3) == c)
|
||||||
|
assert(p:getColor(3).alpha == 128)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Load/save
|
-- Load/save
|
||||||
|
Loading…
Reference in New Issue
Block a user