Represents the color space/profile of a sprite, image, or image spec.


local none = ColorSpace()
local srgb = ColorSpace{ sRGB=true }
local icc = ColorSpace{ fromFile="/path/file.icc" }

Creates an empty color space, sRGB color space, or loads a color profile from the given ICC file specified in fromFile parameter.

local cs = ColorSpace()
local colorSpaceName =

Get/sets the color space name.