API

Class FlowGraphRGBToOkLChBlock

Block that converts a linear sRGB color (r, g, b) to OkLCh (l, c, h). Hue is in radians.

Hierarchy (View Summary)

Index
b: FlowGraphDataConnection<number>

Input connection: the linear blue component.

c: FlowGraphDataConnection<number>

Output connection: the OkLCh chroma.

the configuration of the block

dataInputs: FlowGraphDataConnection<any>[]

The data inputs of the block.

dataOutputs: FlowGraphDataConnection<any>[]

The data outputs of the block.

g: FlowGraphDataConnection<number>

Input connection: the linear green component.

h: FlowGraphDataConnection<number>

Output connection: the OkLCh hue, in radians.

l: FlowGraphDataConnection<number>

Output connection: the OkLCh lightness.

metadata: any

Metadata that can be used by the block.

name: string

The name of the block.

r: FlowGraphDataConnection<number>

Input connection: the linear red component.

uniqueId: string = ...

A randomly generated GUID for each block.

  • Serializes this block

    Parameters

    • serializationObject: any = {}

      the object to serialize to

    • _valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction

      a function that serializes a specific value

    Returns void