Gimp.Gradient.segment_get_right_color

### Method

# Gimp Gradientsegment_get_right_color

since: 2.2

#### Declaration [src]

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

#### Description [src]

Gets the right endpoint color of the segment

Gets the color of the right endpoint color of the segment of the gradient. Returns an error when the segment index is out of range.

Available since: 2.2

#### Parameters

`segment`

  Type: `gint`

  The index of a segment within the gradient.

`color`

  Type: `GimpRGB`

  The return color.

  The argument will be set by the function.
  The data is owned by the caller of the function.

`opacity`

  Type: `gdouble*`

  The opacity of the endpoint.

  The argument will be set by the function.

#### Return value

Type: `gboolean`

TRUE on success.