gimp-gradient-get-custom-samples

Federico Mena Quintero

Description

Sample the spacified gradient in custom positions.

Help

This procedure samples the active gradient in the specified number of points. The procedure will sample the gradient in the specified positions from the list. The left endpoint of the gradient corresponds to position 0.0, and the right endpoint corresponds to 1.0. The procedure returns a list of floating-point values which correspond to the RGBA values for each sample.


Type

unknown

Parameters

Type Name Description
PF_VALUE name The gradient name
PF_INT num-samples The number of samples to take (num-samples >= 1)
unknown positions The list of positions to sample along the gradient
PF_INT reverse Use the reverse gradient (TRUE or FALSE)

Return

Type Name Description
PF_INT num-color-samples Length of the color_samples array (4 * num_samples) (num-color-samples >= 0)
unknown color-samples Color samples: { R1, G1, B1, A1, ..., Rn, Gn, Bn, An }