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

## off-color-factor

Arguments: lamp

The value should be a real number between zero and one, inclusive. When the off-color property is `nil`, an effective off-color is computed by multiplying the red, green, and blue components of the on-color by this number. The default value is 0.5.

For example, suppose:

- off-color is `nil`
- off-color-factor has its initial value of 0.5
- on-color is `white` (red, green, and blue all 255)

Then the color displayed when the lamp is off is a medium gray (the result of `(``make-rgb``:red 127 :blue 127 :green 127)`) -- the red, green, and blue all `(floor (* 255 0.5))` = 127).

See the description of the `lamp` control.

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version