micycle1 / PeasyGradients

Easy and sophisticated gradients in Processing
https://micycle1.github.io/PeasyGradients/
MIT License
16 stars 1 forks source link

Slight artefacts when using black and white colors #11

Closed mheesakkers closed 1 year ago

mheesakkers commented 1 year ago

When testing different types of gradients I noticed that especially at the radial gradient that some black turns up in a place where it should be white. It is also slightly noticeable with the conic variant (it appears as a small line on the left). I tried a couple of interpolation and colorspace modes but got no different results.

gradient = new Gradient(
      color(0, 0, 100),
      color(0, 0, 0)
    );
gradient.setColorSpace(ColorSpaces.DIN99);
gradient.setInterpolationMode(Interpolation.LINEAR);

Screenshot 2022-09-29 at 20 40 55

Also when using color the artefact comes back. Screenshot 2022-09-29 at 20 47 56

micycle1 commented 1 year ago

Just tested things myself. Seems like a problem with 2-color gradients. Gradients with more colors don't suffer the same issue.

mheesakkers commented 1 year ago

Works with the latest build! Thanks! Screenshot 2022-09-30 at 07 50 31

stigmollerhansen commented 6 months ago

Happy to learn the bug is fixed in the latest build (0.9.3 at the current time of writing). However, I can't find the .jar file? Any chance you can provide this? I haven't got the Java skills to compile source code myself. Massive props for writing and providing this library. It's awesome!

micycle1 commented 6 months ago

Happy to learn the bug is fixed in the latest build (0.9.3 at the current time of writing). However, I can't find the .jar file? Any chance you can provide this? I haven't got the Java skills to compile source code myself. Massive props for writing and providing this library. It's awesome!

I've added the jar to the releases!