All Manuals > CAPI User Guide and Reference Manual > 24 COLOR Reference Entries

color-alpha Function

Summary

Returns the alpha component of a color specification.

Package

color

Signature

color-alpha color-spec &optional default => alpha

Arguments
color-spec
A color specification.
default
A number between 0 and 1.
Values
alpha
The alpha component of color-spec.
Description

The function color-alpha returns the alpha component on color-spec, which is a color specification in any model.

If color-spec does not have an alpha component, then default is returned.

The default value of default is 1.0.

See also

make-hsv
make-rgb
make-gray


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:10