Imgix APIsレンダリング APIブレンディングブレンドレイヤーのグラデーションの色相の経路

ブレンドレイヤーのグラデーションの色相の経路

blend-gradient-hue

blend-gradient-hue パラメーターは、2色の間でグラデーションが色相環をどちら回りに進むかを指定します。CSS Color 4の規則に従い、デフォルトは shorter です。

値進む経路
shorter(デフォルト)色相環を短い方向に進む
longer長い方向に進み、反対側の色相を経由する
increasing色相角が増加する方向に進む
decreasing色相角が減少する方向に進む

効果があるのは円筒座標の色空間のみです。先に blend-gradient-cs を oklch、lch、hsl、hsv のいずれかに設定してください。

デフォルト(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