Replies: 2 comments 2 replies
-
|
Change start and end point of the brush like so |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
We currently have a bug that's been around for a decade with RelativeUnit.Relative handling for graphics primitives that don't originate at 0:0, e. g. everything drawn at non-0:0 origin using DrawingContext and Good news is that it's currently being worked on. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to put a gradient on a line that goes from its start point to the end point but I can't figure out how to do it.
My first idea was to simply use the same points
but that didnt quite work:
https://github.com/AvaloniaUI/Avalonia/assets/81490420/e57cd9db-09eb-43f4-9056-5442adaca016
My second idea was to use a radial gradient and set the center to the start point and the radius using a converter based on the distance between the points but I couldn't get that to work either.
What's the correct way to do this?
Beta Was this translation helpful? Give feedback.
All reactions