Test default ColorSpace of new sprites

This commit is contained in:
David Capello 2019-01-03 13:51:30 -03:00
parent 3e23e63824
commit c6d3e0c948
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,4 @@
Copyright (c) 2018-2019 Igara Studio S.A.
Copyright (c) 2018 David Capello
Permission is hereby granted, free of charge, to any person obtaining

8
scripts/color_space.lua Normal file
View File

@ -0,0 +1,8 @@
-- Copyright (C) 2019 Igara Studio S.A.
--
-- This file is released under the terms of the MIT license.
-- Read LICENSE.txt for more information.
local spr = Sprite(32, 32)
local cs = spr.spec.colorSpace
assert(cs.name == "sRGB") -- Default color profile