effect-motion
API Referenceeffect-motionNamespacesColorFunctions

rgba

function rgba(

Function: rgba()

function rgba(
   r,
   g,
   b,
   alpha?): Color;

Defined in: packages/motion/src/Color.ts:111

A color from red, green, blue (each 0–255) and optional alpha (0–1).

Parameters

ParameterType
rnumber
gnumber
bnumber
alpha?number

Returns

Color

Default Value

alpha — 1

Example

Color.rgba(22, 22, 29)

On this page