Scripting API
ReactiveModule
HsvaSignal

HsvaSignal

The HsvaSignal class monitors a HSVA color value.



Inherits From : ColorSignal

Example

Properties

PropertyDescription

alpha

(get) alpha: ScalarSignal
(set) (Not Available)


Returns the value of the alpha channel of this signal.

brightness

(get) brightness: ScalarSignal
(set) (Not Available)


Returns the value of the brightness(value) channel of this signal.

hue

(get) hue: ScalarSignal
(set) (Not Available)


Returns the value of the hue channel of this signal.

lastValue

(get) lastValue: Color
(set) (Not Available)


Returns a new Color containing the last value of the specified signal .

saturation

(get) saturation: ScalarSignal
(set) (Not Available)


Returns the value of the saturation channel of this signal.

Methods

MethodDescription

pinLastValue

pinLastValue(): HsvaSignal


Returns a new HsvaSignal containing a constant value which is the last value of the specified signal before pinLastValue is called.

toRGBA

toRGBA(): RgbaSignal


Convert this signal into RGBA color space.
Be aware, that there is a potential loss of data, when converting HSVA values with Saturation set to 0.

toVec4

toVec4(): Vec4Signal


Convert this signal to Vector signal, using H, S, V, A for four components of vector respectively.