Gimp.Drawable.edit_gradient_fill
@accepts(Gimp.Drawable, Gimp.GradientType, float, bool, int, float, bool, float, float, float, float)
@returns(bool)
def edit_gradient_fill(self, gradient_type, offset, supersample, supersample_max_depth, supersample_threshold, dither, x1, y1, x2, y2):
# Python wrapper for gimp_drawable_edit_gradient_fill()
Draw a gradient between the starting and ending coordinates with the specified gradient type.
This tool requires information on the gradient type. It creates the specified variety of gradient using the starting and ending coordinates as defined for each gradient type. For shapeburst gradient types, the context's distance metric is also relevant and can be updated with Gimp.context_set_distance_metric.
This procedure is affected by the following context setters: Gimp.context_set_opacity, Gimp.context_set_paint_mode, Gimp.context_set_foreground, Gimp.context_set_background, Gimp.context_set_gradient and all gradient property settings, Gimp.context_set_distance_metric.
Since 2.10
- self
The affected drawable.
- gradient_type
The type of gradient.
- offset
Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode dependent.
- supersample
Do adaptive supersampling.
- supersample_max_depth
Maximum recursion levels for supersampling.
- supersample_threshold
Supersampling threshold.
- dither
Use dithering to reduce banding.
- x1
The x coordinate of this gradient's starting point.
- y1
The y coordinate of this gradient's starting point.
- x2
The x coordinate of this gradient's ending point.
- y2
The y coordinate of this gradient's ending point.
- Returns