Skip to content

RenderColorSpace

Overview

Enumeration of color spaces we'll want to convert from/to

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class RenderColorSpace

import { RenderColorSpace } from 'scenerystack/alpenglow';

Constructor

new RenderColorSpace( name : string, isPremultiplied : boolean, isLinear : boolean, toLinear? : ( color: Vector4 ) => Vector4, fromLinear? : ( color: Vector4 ) => Vector4, linearToLinearSRGB? : ( color: Vector4 ) => Vector4, linearSRGBToLinear? : ( color: Vector4 ) => Vector4, toLinearRenderProgram? : ( renderProgram: RenderProgram ) => RenderProgram, fromLinearRenderProgram? : ( renderProgram: RenderProgram ) => RenderProgram, linearToLinearSRGBRenderProgram? : ( renderProgram: RenderProgram ) => RenderProgram, linearSRGBToLinearRenderProgram? : ( renderProgram: RenderProgram ) => RenderProgram )

Instance Methods

Static Properties

XYZ : RenderColorSpace

(readonly)

TODO: better patterns for conversions TODO: remove this or fully support it

xyY : RenderColorSpace

(readonly)

TODO: remove this or fully support it

sRGB : RenderColorSpace

(readonly)

premultipliedSRGB : RenderColorSpace

(readonly)

linearSRGB : RenderColorSpace

(readonly)

premultipliedLinearSRGB : RenderColorSpace

(readonly)

displayP3 : RenderColorSpace

(readonly)

premultipliedDisplayP3 : RenderColorSpace

(readonly)

linearDisplayP3 : RenderColorSpace

(readonly)

premultipliedLinearDisplayP3 : RenderColorSpace

(readonly)

oklab : RenderColorSpace

(readonly)

premultipliedOklab : RenderColorSpace

(readonly)

Source Code

See the source for RenderColorSpace.ts in the alpenglow repository.