Gradient Stretch

Stretches or squeezes the spacing of each gradient's stops around a pivot, spreading the colors within the gradient without moving the gradient itself.

The factor multiplies every stop's distance from the pivot, so 2 spreads the ramp over twice its span while 0.5 packs it into half. A negative factor mirrors the stops across the pivot, reversing the order of the colors.

The pivot is the one point that stays put, measured against the whole ramp from 0 at the start to 1 at the end.

Interface

Inputs

ParameterDetailsPossible Types
Gradient

Primary Input

Gradient[]
Gradient
Factor

Default: 1x

f64[]
f64
Pivot

Default: 0.5

f64[]
f64

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Gradient
Gradient[]