Gradient

Type: object

AttributeTypeDescription
typestring ("linear", "radial" or "angular") (Optional)Type of the gradient
anglenumber (Optional)Angle of the gradient
scalenumber (Optional)Scale of the gradient
color_stopsColor Stop[] (Optional)-
opacitynumber (Optional)Opacity of the gradient

Example

{
  "type": "linear",
  "color_stops": [
    {
      "position": 0,
      "color": {
        "r": 227,
        "g": 9,
        "b": 9,
        "a": 1
      }
    },
    {
      "position": 1,
      "color": {
        "r": 65,
        "g": 65,
        "b": 65,
        "a": 1
      }
    }
  ]
}