Issue #2303 - Please add Constant type of gradient interpolation ...
... to make multi-color hard-edge gradient fills possible Add a new "step" gradient-segment blending function, which is 0 before the midpoint, and 1 at, and after, the midpoint. This creates a hard-edge transition between the two adjacent color stops at the midpoint. Creating such a transition was already possible, but required duplicating the same color at the opposing ends of two adjacent stops, which is cumbersome.
This commit is contained in:
@ -506,7 +506,8 @@ typedef enum
|
||||
GIMP_GRADIENT_SEGMENT_CURVED, /*< desc="Curved" >*/
|
||||
GIMP_GRADIENT_SEGMENT_SINE, /*< desc="Sinusoidal" >*/
|
||||
GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING, /*< desc="Spherical (increasing)", abbrev="Spherical (inc)" >*/
|
||||
GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING /*< desc="Spherical (decreasing)", abbrev="Spherical (dec)" >*/
|
||||
GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING, /*< desc="Spherical (decreasing)", abbrev="Spherical (dec)" >*/
|
||||
GIMP_GRADIENT_SEGMENT_STEP /*< desc="Step" >*/
|
||||
} GimpGradientSegmentType;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user