A colorRamp object that defines a smooth transition from one color to another using a specific interpolation algorithm.

Referenced by: Color Ramp

Properties

PropertyDetails
algorithmAlgorithm used for calculating the ramp.
Valid values:
  • esriCIELabAlgorithm
  • esriHSVAlgorithm
  • esriLabLChAlgorithm
fromColorArray representing the initial color to start the ramp from.
toColorArray representing the final color to end the ramp with.
typeValue indicating the type of colorRamp.
Valid value of this property algorithmic

Algorithmic Example

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