{
  "title": "Color Ramp Algorithmic",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "A colorRamp object is used to specify a range of colors that are applied to a group of symbols.",
  "properties": {
    "algorithm": {
      "type": "string",
      "description": "Algorithm used for calculating the ramp.",
      "enum": [
        "esriCIELabAlgorithm",
        "esriHSVAlgorithm",
        "esriLabLChAlgorithm"
      ]
    },
    "fromColor": {
      "description": "Array representing the initial color to start the ramp from.",
      "$ref": "color_schema.json"
    },
    "toColor": {
      "description": "Array representing the final color to end the ramp with.",
      "$ref": "color_schema.json"
    },
    "type": {
      "type": "string",
      "description": "Value indicating the type of colorRamp.",
      "enum": [
        "algorithmic"
      ]
    }
  },
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "Algorithmic",
        "code": {
          "colorRamp": {
            "type": "algorithmic",
            "fromColor": [
              115,
              76,
              0,
              255
            ],
            "toColor": [
              255,
              25,
              86,
              255
            ],
            "algorithm": "esriHSVAlgorithm"
          }
        }
      }
    ]
  }
}
