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

NextPrevUpTopContentsIndex

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

color-spec is a color specification in any model.

color-alpha returns the alpha component of color-spec . 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) - 25 Feb 2015

NextPrevUpTopContentsIndex