You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
llgcode commentedon Jan 12, 2021
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
dragosslujeru commentedon Jan 12, 2021
Thank you for the reply. I will look at it.