CREATE-COLOR-PALETTE

Function

Create a color palette.

Syntax

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

Arguments

NAME

Name of the color palette.

COLOR_1

First color in the palette.

COLOR_2

Second color in the palette.

COLOR_n

The n’th color in the palette. You can specify up to 64 colors in the palette.

{rgb}

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.

Description

This command creates a palette of colors. There is no limit to the number of palettes that can be defined in a program. No gaps are permitted in the palette.

Examples

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 Also