color ramp
Defines a curve that maps an input position (0..1 along the X axis) to an output float value (Y axis) — useful for shaping falloffs, weights, easing curves, and any value that should vary smoothly across a range.
Click on the curve line to insert a knot. Drag knots to shape the response, and drag the tangent handles for finer control over Bezier-type knots. Right-click a knot to change its interpolation (Corner, Smooth, Bezier) or delete it. Right-click the grid for reset, invert, copy/paste, and preset shapes.
Shared shortcuts (curve + gradient)
|
Action |
Shortcut |
|---|---|
|
Select single knot |
LMB click on knot |
|
Toggle knot in selection (add or remove) |
Ctrl + LMB click on knot |
|
Rubber-band selection (additive) |
Shift + LMB drag on background / bar |
|
Move single knot |
LMB drag on knot |
|
Move whole multi-selection |
LMB drag on any selected knot |
|
Knot popup (Type, Delete) |
RMB on knot |
|
Grid popup (Reset, Copy/Paste, Invert, ...) |
RMB on background / bar |
Gradient-only
|
Action |
Shortcut |
|---|---|
|
Insert knot |
LMB click on bar background |
|
Open color picker |
Double-click on knot |
|
Remove knot |
RMB on knot → Delete Knot |
Notes
- Shift+click on a knot behaves the same as a plain click in both controls: replaces the selection with that single knot. Shift’s additive meaning is reserved for rubber-band on the background/bar.
- Ctrl+Alt+click is curve-only — carried over from earlier code. The gradient has no destructive-delete shortcut; use the right-click menu instead.
- Click-and-hold-drag on a selected knot preserves the multi-selection so the whole group can be moved. The selection only commits at mouse-up if no drag occurred during the press.
- Copy/Paste Knots lives in the grid/bar right-click menu (not the knot popup). Paste replaces all knots with the clipboard contents.
- Multi-knot drag behaves differently per control: gradient allows the group to swap past unselected middle knots (endpoints stay pinned); curve uses a strict clamp at unselected neighbours so the group cannot push past them.