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

no distance color #43

Open
yeKcim opened this issue Jan 13, 2020 · 4 comments
Open

no distance color #43

yeKcim opened this issue Jan 13, 2020 · 4 comments

Comments

@yeKcim
Copy link
Contributor

yeKcim commented Jan 13, 2020

create_poster --output "/tmp/gpx_circular_test.svg" --athlete Anthony --year 2019 --type circular --special-distance 10 --special-distance2 15 --circular-rings

gpx_circular_test_90dpi

Everything is blue…

How should I use --special-distance argument? Is that a bug or a lack of understanding?

When I use --special colored some tracks are in yellow as expected

@yihong0618
Copy link
Contributor

@yeKcim
Special distance is only for GitHub-drawer for now, I think I can raise a pr for this later.

@flopp
Copy link
Owner

flopp commented Jan 17, 2020

Ah, I see want you want to do...

  1. you can use --special FILENAME to mark "special" tracks (e.g. official races, events, ...) - these are draw with the --special-color (yellow by default), all other tracks are draw with --track-color (blue)
  2. if you specify secondary colors (--track-color2, --special-color2) in addition to the primary colors (--track-color, --special-color), the actual track color is interpolated from the primary color to the secondary color based on each tracks length. So the shortest track is drawn with the primary color, the longest track is drawn with the secondary color, all other tracks are draw with a color in between.

@yeKcim
Copy link
Contributor Author

yeKcim commented Jan 17, 2020

thanks
On your README.md, paste the command you used near the pictures could be helpfull for newbies 😁

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

3 participants