Scripting API
ReactiveModule
RgbaSignal

RgbaSignal

The RgbaSignal class monitors a RGBA color value.



Inherits From : ColorSignal

Example

Properties

PropertyDescription

alpha

(get) alpha: ScalarSignal
(set) alpha: ScalarSignal


Returns the value of the alpha channel between 0 and 1.0.

blue

(get) blue: ScalarSignal
(set) blue: ScalarSignal


Returns the value of the blue channel between 0 and 1.0.

green

(get) green: ScalarSignal
(set) green: ScalarSignal


Returns the value of the green channel between 0 and 1.0.

lastValue

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


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

red

(get) red: ScalarSignal
(set) red: ScalarSignal


Returns the value of the red channel between 0 and 1.0.

Methods

MethodDescription

pinLastValue

pinLastValue(): RgbaSignal


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

toHSVA

toHSVA(): HsvaSignal


Convert this signal into HSVA color space.

toVec4

toVec4(): Vec4Signal


Convert this signal to Vector signal, using R, G, B, A for four components of vector respectively.