micycle1 / PeasyGradients

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

If linearGradient angle == TWO_PI the gradient will be fully opaque #10

Closed mheesakkers closed 2 years ago

mheesakkers commented 2 years ago

I hope you don't find these small issues annoying... I came across a minor bug I think. When you give the gradient an angle of TWO_PI the gradient will be opaque (first colorstop).

peasyGradients.linearGradient(gradient, TWO_PI);

Angle == TWO_PI Screenshot 2022-09-18 at 13 12 05

versus angle == PI Screenshot 2022-09-18 at 13 13 19

micycle1 commented 2 years ago

Interesting find... I'll look into it.