ColorSpaceNode

Last modified: Jun 30, 2024

This node represents a color space conversion. Meaning it converts a color value from a source to a target color space.

Constructor

new ColorSpaceNode(colorNode, source, target)
ParameterTypeDefault Value
colorNodeNode
sourcestring
targetstring

Constructs a new color space node.

AccessorType

Properties

PropertyTypeDefault Value
colorNodeNode
sourcestring
targetstring
MethodType

Extends

TempNode

workingToColorSpace

TSL function for converting a given color node from the current working color space to the given color space.

ParameterTypeDefault Value
nodeNode
targetColorSpacestring

Returns

ColorSpaceNode

colorSpaceToWorking

TSL function for converting a given color node from the given color space to the current working color space.

ParameterTypeDefault Value
nodeNode
sourceColorSpacestring

Returns

ColorSpaceNode

convertColorSpace

TSL function for converting a given color node from one color space to another one.

ParameterTypeDefault Value
nodeNode
sourceColorSpacestring
targetColorSpacestring

Returns

ColorSpaceNode