Nodes/ComfyUI-Apt_Preset/color_brightGradient
ComfyUI Node

color_brightGradient

A linear lighting gradient you paint across the image

By cardenluo·Created 2 years ago·Updated 17 days ago· 309
color_brightGradient
  • image
  • gradient_image
start_x0.00
start_y0.00
start_bright1.00
end_x1.00
end_y1.00
end_bright1.00
overlay_color#FFFFFF
start_alpha0.00
end_alpha0.00

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.
  • image in, gradient_image out.

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.

CategoryApt_Preset/image/color_adjust

Inputs (10)

NameTypeDefaultDescription
imageIMAGE
start_xFLOAT0.000–1
start_yFLOAT0.000–1
start_brightFLOAT1.000–5
end_xFLOAT1.000–1
end_yFLOAT1.000–1
end_brightFLOAT1.000–5
overlay_colorSTRING#FFFFFF
start_alphaFLOAT0.000–1
end_alphaFLOAT0.000–1

Outputs (1)

NameTypeDescription
gradient_imageIMAGE