Draw line using a gradient color
Hello,
I am using draw2d to draw some graphics using go and it's going great. Thank you for the library! I have a usecase where I would need the line I am drawing to use a gradient color instead of a solid color. As an example the line could start green and end red. Can this be done? I've been looking around for a way to achieve this but so far I have come up short. Thank you in advance for any answer.
Hi @dragosslujeru , there's no gradient support in draw2d and it's not planned to have any soon. You might want to use another library like https://github.com/fogleman/gg/blob/master/gradient.go thanks
Thank you for the reply. I will look at it.