Skip to content

@vaguevoid/fiasco / color / Colors / alpha

Function: alpha()

alpha(color, alpha): Color

Defined in: src/color.ts:200

Adjust the alpha of the provided color. Does not mutate.

Parameters

color

Color

Color

alpha

number

0-1

Returns

Color

A new color