Maptitude GISDK Help |
Generates an array of gradually changing colors.
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 |
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 |
The default method is "HSV." The default direction is "SHORT."
white = ColorRGB(65535, 65535, 65535)
red = ColorRGB(65535, 0, 0)
pink_palette = GeneratePalette(red, white, 8, )
Function |
Summary |
Creates a color based on hue, saturation, and brightness |
|
Creates a color based on hue, lightness, and saturation |
|
Creates a color based on the amounts of red, green, and blue |
©2025 Caliper Corporation | www.caliper.com |