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)| Parameter | Type | Default Value |
|---|---|---|
| colorNode | Node | — |
| source | string | — |
| target | string | — |
Constructs a new color space node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| colorNode | Node | — | |
| source | string | — | |
| target | string | — | |
| Method | Type | |
|---|---|---|
| resolveColorSpace | (builder: NodeBuilder, colorSpace: string) => string | |
| setup | (builder: any) => Node | |
Extends
TempNodeTSL function for converting a given color node from the current working color space to the given color space.
| Parameter | Type | Default Value |
|---|---|---|
| node | Node | — |
| targetColorSpace | string | — |
Returns
ColorSpaceNodeTSL function for converting a given color node from the given color space to the current working color space.
| Parameter | Type | Default Value |
|---|---|---|
| node | Node | — |
| sourceColorSpace | string | — |
Returns
ColorSpaceNodeTSL function for converting a given color node from one color space to another one.
| Parameter | Type | Default Value |
|---|---|---|
| node | Node | — |
| sourceColorSpace | string | — |
| targetColorSpace | string | — |
Returns
ColorSpaceNode