ColorSpace

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

ColorSpace()

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.

ColorSpace.name

local cs = ColorSpace()
local colorSpaceName = cs.name

Get/sets the color space name.