1997
Federico Mena Quintero
Sample the spacified gradient in custom positions.
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.
unknown
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) |
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 } |