Need help to how make a linear-gradient on a line #9974
-
|
I have a Path with a single line that I use as edges to connect elements on a graph, I needed to give it a gradient to have some sense of direction. This sounded simple to me at first, but the gradient wasn't behaving how I expected. The gradient should either be applied to the whole view port of the Path or to the bounds of the lines within. I might be hitting this issue with the Path component: #6966 Here's what I have so far on SlintPad. It really only looks correct in the top left corner edge_issue.mp4I'm also curious to know if there are other ways to make lines in this fashion. Any help will be super appreciated, thank you :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
The Slint extension on Zed mislead me by not knowing about |
Beta Was this translation helpful? Give feedback.
I have a solution using the transform-rotation property
link to SlintPad
I ended up not liking the rectangle from it's rough edges at specific angles so I used the rotation on the Path and that worked well.