Closed stockiNail closed 2 years ago
I believe the problem is here:
The getDecimalForPixel is reversed (and that would need to be countered):
I have the feeling that it should be in the createLinearGradient. If reverse is set, bottom and top (and left and right) should be reversed.
When you are configuring the scale with
reverse: true
, the color sequence of the gradient is not correct.I have prepared a codepen for that: https://codepen.io/stockinail/pen/xxpENVM
I can check how to solve it and submit a PR for that.