js-util

Home > rc-js-util > Vec4 > setRGBAColor

Vec4.setRGBAColor() method

Signature:

setRGBAColor(_packedRGBA: number, _normalize?: boolean): Vec4<TArray>;

Parameters

Parameter Type Description
_packedRGBA number The number to be unpacked.
_normalize boolean (Optional) If true, normalize components between 0 - 1.

Returns:

Vec4<TArray>