Method
GimpGradientget_custom_samples
since: 2.2
Declaration [src]
GeglColor**
gimp_gradient_get_custom_samples (
  GimpGradient* gradient,
  gsize num_samples,
  const gdouble* positions,
  gboolean reverse
)
Description [src]
Sample the gradient in custom positions.
Samples the color of the gradient at positions from a list. The left endpoint of the gradient corresponds to position 0.0, and the right endpoint corresponds to 1.0. Returns a list of colors, one for each sample.
Available since: 2.2
Parameters
- num_samples
- 
            Type: gsizeThe number of samples to take. 
- positions
- 
            Type: An array of doubleThe list of positions to sample along the gradient. The length of the array is specified in the num_samplesargument.The data is owned by the caller of the method. 
- reverse
- 
            Type: gbooleanUse the reverse gradient.