imgix APIs
Rendering API
Fill Gradient Type

Fill Gradient Type

fill-gradient-type

Determines the gradient direction of fill=gradient.

Valid values are linear and radial. Defaults to linear when not specified.

  • linear (default): Generates the gradient in a linear direction (ex: left to right). Colors can be controlled with fill-gradient-linear
  • radial: Sets the gradient to have a radial direction (ex: from center outwards). Colors can be controlled with fill-gradient-radial