1997
Federico Mena Quintero
Sample the specified in uniform parts.
This procedure samples the active gradient in the specified number of uniform parts. It returns a list of floating-point values which correspond to the RGBA values for each sample. The minimum number of samples to take is 2, in which case the returned colors will correspond to the { 0.0, 1.0 } positions in the gradient. For example, if the number of samples is 3, the procedure will return the colors at positions { 0.0, 0.5, 1.0 }.
unknown
Type | Name | Description |
---|---|---|
PF_VALUE | name | The gradient name |
PF_INT | num-samples | The number of samples to take (num-samples >= 2) |
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 } |