Imgix APIsRendering APIBlendingBlend Gradient Hue

Blend Gradient Hue

blend-gradient-hue

The blend-gradient-hue parameter sets which way around the hue wheel the gradient travels between two colors. It follows the CSS Color 4 rules and defaults to shorter.

ValuePath taken
shorter (default)The shorter way around the wheel
longerThe longer way, sweeping through the opposite hues
increasingThe path along which the hue angle increases
decreasingThe path along which the hue angle decreases

It only has an effect in a cylindrical color space — set blend-gradient-cs to oklch, lch, hsl or hsv first.

The default, shorter
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=ffff2200,ff0044ff&blend-gradient-cs=oklch
oklch