Skip to content

Function: getAlpha()

ts
function getAlpha(color): number | undefined;

Defined in: getAlpha.ts:10

Get the alpha value for a color.

Parameters

ParameterTypeDescription
colorColorthe color to get the value from

Returns

number | undefined

the alpha value, or undefined if the color has no alpha