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 ​
| Parameter | Type |
|---|---|
color | string |
alpha | number |
Returns ​
string