Maptitude GISDK Help

GeneratePalette()

Summary

Generates an array of gradually changing colors.

 

Syntax

colors_array = GeneratePalette(color c1, color c2, integer n, array options)

 

Argument Contents
c1 Starting color
c2 Ending color
n Number of intermediate colors to generate

 

Option Type Contents
method String The method used to generate intermediate colors; supported methods are "HSV", "HLS" or "RGB"
spiral String The direction for interpolating the (cyclic) hue component in HSV or HLS methods; supported directions are:- "FORWARD" - increasing hue, wrapping around 360- "BACKWARD" - decreasing hue, wrapping around 0- "LONG" - use the direction which is larger than half the spectrum- "SHORT"- use the direction which is smaller than half the spectrum

 

Returns

An array of (n + 2) gradually changing colors.

 

Element Type Contents
1 Color c1, the input starting color
2 through (n + 1) Color intermediate colors
(n + 2) Color c2, the input ending color

 

Notes

Example

white = ColorRGB(65535, 65535, 65535)

red = ColorRGB(65535, 0, 0)

pink_palette = GeneratePalette(red, white, 8, )

 

See Also

Function Summary
ColorHSV() Creates a color based on hue, saturation, and brightness
ColorHLS() Creates a color based on hue, lightness, and saturation
ColorRGB() Creates a color based on the amounts of red, green, and blue

 

 

©2025 Caliper Corporation www.caliper.com