Skip to content

A part of a multipart colorRamp that specifies a range of colors, algorithm and optional weights for the part.

Referenced by: Color Ramp Multipart

Properties

Property Details
algorithm Algorithm used for calculating the ramp.
Valid values:
  • esriCIELabAlgorithm
  • esriHSVAlgorithm
  • esriLabLChAlgorithm
fromColor Array representing the initial color to start the ramp from.
start The start percentage of the color ramp.
stop The stop percentage of the color ramp.
toColor Array representing the final color to end the ramp with.
type Value indicating the type of colorRamp.
Valid value of this property algorithmic

One part in a multipart color ramp Example

{
  "type": "algorithmic",
  "fromColor": [
    115,
    76,
    0,
    255
  ],
  "toColor": [
    255,
    25,
    86,
    255
  ],
  "algorithm": "esriHSVAlgorithm",
  "start": 0,
  "stop": 100
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.