Check ColorSpace{} constructor

This commit is contained in:
David Capello 2020-07-28 17:44:31 -03:00
parent 9e22d25136
commit 233c56a880

View File

@ -4,8 +4,10 @@
-- Read LICENSE.txt for more information.
local none = ColorSpace() -- None
local srgb = ColorSpace{ sRGB }
local srgb = ColorSpace{ sRGB=true }
local none2 = ColorSpace{ sRGB=false }
assert(none ~= srgb)
assert(none == none2)
local spr = Sprite(32, 32)
local cs1 = spr.colorSpace