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

Link copied to clipboard

No color space (three.js ''). Treated as a linear transfer, no conversion.

Link copied to clipboard

sRGB color space (three.js 'srgb').

Link copied to clipboard

sRGB-linear color space (three.js 'srgb-linear'); the default working space.

Link copied to clipboard

Display-P3 color space (three.js 'display-p3'). Reserved: not registered yet.

Link copied to clipboard

Linear Display-P3 color space (three.js 'display-p3-linear'). Reserved: not registered yet.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.