Skip to content
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

Drawn arrows can look better when they overlap #221

Open
hb20007 opened this issue Feb 4, 2022 · 0 comments
Open

Drawn arrows can look better when they overlap #221

hb20007 opened this issue Feb 4, 2022 · 0 comments

Comments

@hb20007
Copy link

hb20007 commented Feb 4, 2022

Chess board with arrows

Using the arrows, I am trying to show a sequence of moves. It is Black to play. First the moves shown by the red arrows are played, then the moves shown by the green arrows.

The problem is the overlapping red and green arrows showing the movements of the white queen. I am using different colors to make it easier to see, because if both arrows were green it would look even less clear. But still it is not ideal.

One way it might be improved is to change the styling of the bottom arrow when it is detected that 2 arrows overlap. For example, the bottom arrow can be made thicker when it's detected that a square it covers overlaps with one covered by an arrow drawn later.

I am not sure if this is feasible though.


I have another solution which is definitely feasible but I'm not sure if it will be good. The 3 colors of arrows can have very slightly different widths. So this will allow using them in drawing complex drawings with overlapping lines. And if they are used for simpler things maybe the different widths will not be so noticeable to the eye.

To show how it will look like, I have tried giving all the red arrows a stroke width of 0.2, instead of the original 0.15625:

Same diagram with arrows of different widths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant