---
title: "Gradient"
url: "https://help.maxon.net/ag/en-us/Content/html/Modifier_image_color_gradient.html"
section_path: "Modifiers > Image > Color > Color Gradient"
description: "Similar to the Gradient Generator but generates replace the source color by a gradient where its alpha is non zero."
---

# Gradient

## Brief Description

Similar to the [Gradient Generator](https://help.maxon.net/ag/en-us/Content/html/Generator_gradient.html.md) but generates replace the source color by a gradient where its alpha is non zero.

## Controls

| Parameter / Script Name | Type | Default | Function |
| --- | --- | --- | --- |
| `Enabled / enabled` | Boolean | On |  |
| `Red / process_red` | Boolean | On | Enable the red channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0. |
| `Green / process_green` | Boolean | On | Enable the green channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0. |
| `Blue / process_blue` | Boolean | On | Enable the blue channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0. |
| `Alpha / process_alpha` | Boolean | On | Enable the alpha channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0. |
| `Type / type` | Choice | Linear | *Linear*<br>*Reflected*<br>*Radial*<br>*Angle*<br>*Diamond* |
| `Wrap Mode / wrap` | Choice | Constant | *Constant*<br>*Repeat*<br>*Mirror* |
| `Position 1 / pos0` | Float 2D | 0, 0 |  |
| `Position 2 / pos1` | Float 2D | 0, 0 |  |
| `Center / center` | Float 2D | 0, 0 |  |
| `Radius / radius` | Float 2D | 100, 100 |  |
| `Focal Point / focal_point` | Float 2D | 0, 0 |  |
| `Angle / angle` | Float | 90 |  |
| `Max Angle / max_angle` | Float | 359.999 |  |
| `Repetitions / num_repetitions` | Float | 1 |  |
| `Offset / offset` | Float | 0 |  |
| `Invert / invert` | Boolean | Off |  |
| `Bands / lut_size` | Float | 256 |  |
| `Band Interpolation / band_interpolation` | Choice | Linear | *Linear*<br>*Nearest* |
| `Gradient / gradient` |  |  |  |
| `Colorspace / input_colorspace` | Choice | Project Display Space | *Project Working Space*: The color is assumed to be expressed in the project working space.<br>*Project Display Space*: The color is assumed to be expressed in the project display space. |
| `Blend Mode / blend_mode` | Choice | Replace | *Add*: Ac + Dc — Adds source to destination.<br>*Color Dodge*: if Ac \< 1 → min(1, Bc / (1 - Ac)); else 1.<br>*Lighten*: max(Ac, Bc).<br>*Linear Dodge*: min(Ac + Bc, 1).<br>*Screen*: Ac + Bc - Ac \* Bc.<br>*Hard-light*: multiply or screen based on Ac.<br>*Hard Mix*: vivid-light(Ac, Bc) threshold.<br>*Linear Light*: burn/dodge based on Ac.<br>*Overlay*: multiply or screen based on Bc.<br>*Pin Light*: removes mid‑tones.<br>*Soft Light*: multi‑branch formula using Ac and Bc.<br>*Vivid Light*: color burn/dodge.<br>*Difference*: abs(A − B).<br>*Divide*: Ac / Bc (if values > 0).<br>*Exclusion*: Ac + Bc - 2AcBc.<br>*Minus*: Ac - Bc.<br>*Subtract*: Bc - Ac.<br>*Color*: SetLum(Ac, Lum(Bc)).<br>*Hue*: SetLum(SetSat(Ac, Sat(Bc)), Lum(Bc)).<br>*Luminosity*: SetLum(Bc, Lum(Ac)).<br>*Saturation*: SetLum(SetSat(Bc, Sat(Ac)), Lum(Bc)).<br>*Replace*: Ac.<br>*Destination Atop*: Bca × Aa + Aca × (1 - Ba).<br>*Destination Out*: Ba \* Bc \* (1 - Aa).<br>*Destination Over*: Aa \* (1 - Ba) + Bc.<br>*Destination In*: Bc \* Aa.<br>*Source Atop*: Ac \* Ba + Bc \* (1 - Aa).<br>*Source Out*: Ac \* (1 - Ba).<br>*Normal*: Ac + Bc \* (1 - Aa).<br>*Source In*: Ac \* Ba.<br>*Xor*: Ac \* (1 - Ba) + Bc \* (1 - Aa).<br>*Average*: (Ac + Bc) / 2.<br>*Conjoint Over*: logic based on Aa ≤ Ba.<br>*Disjoint Over*: logic based on Aa + Ba ≥ 1.<br>*Geometric*: 2AcBc / (Ac + Bc).<br>*Grain Extract*: Bc - Ac + 0.5.<br>*Grain Merge*: Bc + Ac - 0.5.<br>*Hypot*: sqrt(Ac² + Bc²).<br>*Reflect*: Aa² / (1 - Ba).<br>*Color Burn*: 1 - min(1, (1 - Bc) / Ac).<br>*Darken*: min(Ac, Bc).<br>*Linear Burn*: Bc + Ac - 1.<br>*Multiply*: Ac \* Bc.<br>*Multiply (Math)*: Ac \* Bc (negative preserved). |
| `Mask / mask` | Image | - |  |
| `Mix / mix_with_source` | Float | 1 | Dissolves between the original image at 0 and the image with the effect applied at 1. |
