Generic Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## off-color

Arguments: lamp

Returns or sets (with setf) the color of the argument lamp when it is off. The value should be a RGB color object (see make-rgb) or `nil`.

If the value is `nil`, the effective off-color will be computed automatically from the on-color and the off-color-factor properties, by multiplying the red, green, and blue components of the on-color by the off-color-factor number. This allows changing the overall color of the lamp periodically by changing only the on-color, letting the off-color match it automatically.

When an RGB color, that color is used directly. The default value is `nil`.

When the value property of lamp is a two-dimensional array (so an array of lamps is displayed), the value of this property may also be an array of the same dimensions, with values colors (or `nil`), allowing each lamp to have its own off-color.

See the description of the `lamp` control.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version