GpxTrackPoster icon indicating copy to clipboard operation
GpxTrackPoster copied to clipboard

no distance color

Open yeKcim opened this issue 6 years ago • 4 comments

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

yeKcim avatar Jan 13 '20 10:01 yeKcim

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

yihong0618 avatar Jan 16 '20 06:01 yihong0618

how do you display so many colors on https://raw.githubusercontent.com/flopp/GpxTrackPoster/master/examples/example_grid.png and https://raw.githubusercontent.com/flopp/GpxTrackPoster/master/examples/example_circular.png ?

yeKcim avatar Jan 17 '20 08:01 yeKcim

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.

flopp avatar Jan 17 '20 10:01 flopp

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

yeKcim avatar Jan 17 '20 11:01 yeKcim