Imgix APIsRendering APIBlendingBlend Gradient Angle

Blend Gradient Angle

blend-gradient-angle

The blend-gradient-angle parameter sets the direction a linear blend-gradient runs. It defaults to 180, top to bottom.

Angles follow the CSS convention, naming the direction the gradient runs toward: 0 points up, and angles turn clockwise. Any number wraps, so -90 is the same as 270.

AngleDirection
0To the top
90To the right
180 (default)To the bottom
270To the left

A side or corner keyword is also accepted in place of degrees — top, right, bottom, left, or a pair such as bottom,left — naming the direction the gradient runs toward. A pair must be one vertical side and one horizontal: top,bottom and left,right are rejected, as is any list of three or more. A corner’s angle follows the layer’s aspect ratio rather than being a flat 45 degrees, since the gradient line runs perpendicular to the diagonal.

The angle is measured against the blend layer’s own box, not the picture’s.

The default, 180 — top to bottom
https://assets.imgix.net/examples/clouds.jpg?w=600&h=400&fit=crop&blend=https%3A%2F%2Fassets.imgix.net%2Fexamples%2Fbluehat.jpg&blend-mode=normal&blend-size=inherit&blend-gradient=cc000000,00000000
cc000000,00000000