ColorSpace

A color space identifier. three.js uses plain strings for these, such as 'srgb'. Each member below names its string.

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'). Not registered, so converting with it throws until you add it with ColorManagement.define.

Link copied to clipboard

Linear Display-P3 color space (three.js 'display-p3-linear'). Not registered, so converting with it throws until you add it with ColorManagement.define.

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.