-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashed line #6
Comments
I've thought about it on and off. There might be a decent texture-based approach, otherwise it's a more computationally expensive segmenting of the lines. If you want dashed single line-segments, you could use the workaround of a striped texture brush and a texture matrix transform to align the texture to repeat the texture along the length of the line. Obviously won't work if you have a multi-segment path, straight or not. |
I have several segments, I was thinking about just drawing lines along the path between points. I'm not really worried about the intersections lining up perfectly. It might not give the best performance, but in my scenario it's not a huge issue as the resulting texture is cached and the content isn't dynamic so it's just an initial loading cost. I'm also dealing with a relatively small number of these dashed lines. |
Great - if it does the job you need it to, that's what counts. I will leave this issue open though, as I'm going to look more into it. I already laid some of the necessary groundwork that will be useful for things like path length gradients as well. |
I could really use a dashed line, at least only for straight lines. Would that be an enhancement that could be added?
The text was updated successfully, but these errors were encountered: