Function: getAlpha()
ts
function getAlpha(color): number | undefined;Defined in: getAlpha.ts:10
Get the alpha value for a color.
Parameters
| Parameter | Type | Description |
|---|---|---|
color | Color | the color to get the value from |
Returns
number | undefined
the alpha value, or undefined if the color has no alpha