Method

GimpGradientsegment_set_right_color

Declaration [src]

gboolean
gimp_gradient_segment_set_right_color (
  GimpGradient* gradient,
  gint segment,
  const GimpRGB* color,
  gdouble opacity
)

Description [src]

Sets the right endpoint color of the segment

Sets the right endpoint color of the segment of the gradient. Returns an error when gradient is not editable or segment index is out of range.

Available since:2.2

Parameters

segment gint
 

The index of a segment within the gradient.

color GimpRGB
 

The color to set.

 The data is owned by the caller of the function.
opacity gdouble
 

The opacity to set for the endpoint.

Return value

Returns: gboolean
 

TRUE on success.