Imgix APIsRendering APIFillFill 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.

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

Either type accepts 2 to 16 colors, positioned with fill-gradient-stops and interpolated in the color space set by fill-gradient-cs.