Imgix APIsVideo APIBlendingBlend Layer Gradient Mode

Blend Layer Gradient Mode

blend-gradient-mode

Sets how a blend-gradient composites onto the layer image. The default is normal.

Valid values are normal, multiply, screen, overlay, darken, lighten, color-dodge (dodge), color-burn (burn), hard-light (hardlight), soft-light (softlight), difference, exclusion, hue, saturation, color, and luminosity. See blend-mode for what each one does.

Values are case-insensitive, and a prefix picks the first match in the order the Rendering API uses, so d resolves to dodge. An unknown name draws normal rather than nothing — unlike blend-mode, where an unknown name draws no layer at all.

This is the mode the gradient uses against the layer. The mode the finished layer uses against the picture is blend-mode. It is ignored when blend-gradient-mask is on.

Use blend-gradient-mode[N] to target a specific blend layer, where N is 0–3. Layer 0 is either the bare blend-gradient-mode or blend-gradient-mode[0]; if both are supplied, the bare name wins. A layer never borrows another layer’s spelling.