Skip To Content ArcGIS for Developers Sign In Dashboard

Web Scene Specification

Color Ramp Algorithmic

A colorRamp object is used to specify a range of colors that are applied to a group of symbols.

Referenced by: Color Ramp Multipart, Color Ramp

Properties

Property Details
algorithm Algorithm used for calculating the ramp.
If property is present, must be one of the following values:
  • esriCIELabAlgorithm
  • esriHSVAlgorithm
  • esriLabLChAlgorithm
fromColor Array representing the initial color to start the ramp from.
toColor Array representing the final color to end the ramp with.
type Value indicating the type of colorRamp.
If property is present, value of this property must be algorithmic

Example

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

Feedback on this topic?