i am looking to include gradients in my processing drawings. i am generating svg images, so i believe the P2D renderer isn’t for me.
i’d also like to apply the gradients to large shapes made out of bezier curves - many of the examples i’ve seen seem to be linear.
i have tried to download the peasygradients library, but i seem to be doing something wrong. the only jar file that i can find on the peasygradients github is for jafama and it doesn’t seem to allow me to import anything related to peasygradients.
does anyone have any suggestions or examples of something like this? is it even possible?
The project has been sitting at ~90% complete for about a year – I haven’t yet finished it off fully, nor have created a .jar for it.
@bcabc
Anyway, I’ve just created a proper .jar for so you are able to use it in the meantime:
Use masking (as described in the repo README) to apply a gradient to a shape. For now you’ll find general docs in the javadocs accompanying the source code – I’ll soon have these published as a Github pages website.