CREATE-COLOR-PALETTE

Syntax

CREATE-COLOR-PALETTE  NAME = {palette_name_txt_lit}  COLOR_1 = {rgb_value}  COLOR_2 = {rgb_value}  [COLOR_n] = {rgb_value} 

Description

Create a color palette.

This command enables you to create a palette of colors. The number of palettes that can be defined in a program is not limited. No gaps are permitted in the palette.

Parameters

Parameter Description

NAME

Specifies the name of the color palette.

COLOR_1

Specifies the first color in the palette.

COLOR_2

Specifies the second color in the palette.

COLOR_n

Specifies the nth color in the palette. You can specify up to 64 colors in the palette.

{rgb}

Designates a color reference. This can be expressed as (r,g,b), where r, g, and b are either a numeric literal (0 to 255), a numeric variable, or a numeric column. It can also be expressed as a (c), where c is a string literal, column, or variable that is the name of a color.

Example

The following example illustrates the CREATE-COLOR-PALETTE command:

begin-report
 create-color-palette 
   name = 'funky'
   color_1 = ('blue')
   color_2 = ('red')
   color_3 = ('orange')

  Print-Chart Groovy
   Color-Palette = 'Funky'
 end-report

See DECLARE-CHART, PRINT-CHART