color_brightGradient
A linear lighting gradient you paint across the image
- image
- gradient_image
This is as much a lighting tool as a color one. color_brightGradient lets you place two points anywhere on the frame, give each its own brightness, and it interpolates a linear gradient between them across the whole image - think a soft window-light falloff across a portrait, or a graduated ND filter darkening a bright sky. Stack a color tint on top of the brightness ramp and you've got a cheap two-tone grade too. It's under Apt_Preset/image/color_adjust.
How it works
You're not limited to edge-to-edge gradients - start_x/start_y and end_x/end_y are two arbitrary normalized points (0-1), so the gradient can run diagonally, from a corner, or anywhere else you place the anchors. Brightness interpolates linearly between start_bright and end_bright. Separately, overlay_color with start_alpha/end_alpha fades a color tint in across the same span - out of the box both alphas default to 0, so this node only does brightness until you turn the tint on.
The inputs and outputs that matter
start_x/start_y/end_x/end_y(0-1, defaults 0/0 and 1/1) - the two gradient anchor points.start_bright/end_bright(0-5, both default 1) - real headroom above "neutral," so you can genuinely blow one end out.overlay_color(hex, default#FFFFFF) - invisible until alpha is raised.start_alpha/end_alpha(0-1, default 0 both) - the tint's opt-in switch at each end.imagein,gradient_imageout.
How to install it
Through ComfyUI Manager: search "ComfyUI-Apt_Preset", install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/cardenluo/ComfyUI-Apt_Preset.git
then run install.bat (Windows) or install requirements manually on Linux/Mac, and restart. No model downloads for this node.
Common issues & troubleshooting
Only brightness changes, no color. That's expected - start_alpha/end_alpha default to 0, so overlay_color has no visible effect until you raise them.
Gradient direction looks backwards. There's no assumed "left to right" here - start_x/start_y and end_x/end_y are just two independent points. Swap them if the direction reads wrong.
Effect looks too subtle or too extreme. start_bright/end_bright have headroom to 5, well past neutral - small moves near 1 barely register, so don't be afraid to push further toward the extremes for a visible effect.
Looking for the same idea with a live preview? color_lineGradient_visual covers similar ground - same two-point gradient concept, flagged as an output node for inline previewing.
IMPORT FAILED on the pack. ComfyUI-Apt_Preset is large and updates often; users have reported import failures after some updates. Reinstall via Manager before assuming it's this node.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| start_x | FLOAT | 0.000–1 | — |
| start_y | FLOAT | 0.000–1 | — |
| start_bright | FLOAT | 1.000–5 | — |
| end_x | FLOAT | 1.000–1 | — |
| end_y | FLOAT | 1.000–1 | — |
| end_bright | FLOAT | 1.000–5 | — |
| overlay_color | STRING | #FFFFFF | — |
| start_alpha | FLOAT | 0.000–1 | — |
| end_alpha | FLOAT | 0.000–1 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| gradient_image | IMAGE | — |