ColorSpace
A color space identifier.
In three.js color spaces are plain strings defined in constants.js (NoColorSpace = '', SRGBColorSpace = 'srgb', LinearSRGBColorSpace = 'srgb-linear', plus Display-P3 variants). The Kotlin port models them as an enum so the type system enforces valid values; only the members actually used by the ported math layer are defined here.
Entries
No color space (three.js ''). Treated as a linear transfer, no conversion.
sRGB-linear color space (three.js 'srgb-linear'); the default working space.
Linear Display-P3 color space (three.js 'display-p3-linear'). Reserved: not registered yet.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.