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

## bar-colors

Arguments: bar-chart-view

Returns the value of the bar-colors property of a `bar-chart-view`. The value may be set at creation time by passing the `bar-colors` initarg, or any time later by calling (setf bar-colors).

The colors that are used to fill the interior of the bars of a `bar-chart-view` in a `chart-widget`. The value should be a sequence (list or vector) of RGB objects (see make-rgb) and/or symbols that are globally bound to RGB objects. The default value is a list returned by the following (the symbols name pre-defined colors, see make-rgb):

    (list 'light-blue 'green 'light-red 'yellow
          'cyan 'magenta 'blue 'dark-green 'red
          'dark-cyan 'dark-yellow 'gray 'dark-gray)

If the value is `nil`, then the bars are not filled and will be transparent. Otherwise, the first object in the chart-widget's sequence of chart-objects is drawn with the first color, the second object with the second color, and so on. If there are fewer colors in the list than there are chart-objects, then the drawing code will cycle back through the list of colors as needed.

This property and other `bar-chart-view` properties are used only when the chart-view property of the `chart-widget` is `:bar` to display the `bar-chart-view`.

See also bar-border-colors and bar-fill-textures.

See `chart-widget` and also cg-chart-widget.htm.

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