Gimp-Forum.net

Full Version: Python fu : Gradient API
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to get color from gradient at certain position ?
You use pdb.gimp_gradient_get_custom_samples() with a list of one element:
Code:
pdb.gimp_gradient_get_custom_samples(gradient,1,[.5],False)

But it is usually better to get all your gradient samples at the same time using a single call with a list of positions...
That's what I'm looking for. Thank you