Skip to content

Documentation / @ripl/core / setColorAlpha

Function: setColorAlpha() ​

setColorAlpha(color, alpha): string

Defined in: packages/core/src/color/utilities.ts:17

Returns a new color string with the alpha channel replaced by the given value.

Parameters ​

ParameterType
colorstring
alphanumber

Returns ​

string