Command: graduation

Syntax

graduation <name> {= <dent>}

Description

Create or redefine a graduation identifier.

Parameters

Switches

Notes

The width and height of the tile are defined within the file.

Graduation identifiers can have global or application scope, but cannot have local scope. When local graduation identifiers are required, string identifiers should be used to reference graduations by name.

Examples

A simple 2-color linear graduation, green (0,100,0) to dark grey (30,30,30)

graduation mygrad,-rgb=<0,100,0, 30,30,30>

A 2 color linear graduation, from blue (0,100,0) to yellow (100,100,0), using a bell blend with a three-quarter focus position.

graduation mygrad,-rgb=<blue.rgb,yellow.rgb>,-ty=2,-foc=0.75

A multi-colored (5) linear graduation with 4 positions where the colors change.

graduation mygrad,-rgb=<white.rgb,maroon.rgb,yellow.rgb,green.rgb, 75,75,75>,\ 
    -pos=<0,0.3,0.6,0.8,1>

A non-linear circular graduation, from brown (60,20,20) to yellow (100,100,0), with a non-default center.

graduation mygrad,-rgb=<brown.rgb,yellow.rgb>,-sh=2,-cen=<-1,0>

See Also

Commands:

fillstyle, polygon, prism, route

Identifiers:

scope (atable)

Structures:

color, graduation