I haven't been able to locate a speed key for JOSM's color coding when using "Car" mode for coloring GPX tracks by speed. Where can I find what color corresponds to what speed? asked 08 Jan '12, 07:51 Baloo Uriza |
You find the relevant section of code here. The default color is HSB((v / 45 * 300), 1, 1) where v is the speed in m/s. answered 08 Jan '12, 08:30 Gnonthgol ♦ Baloo Uriza Hmm, could I get an example of how to calculate that? I definitely appreciate the comprehensive answer, but not sure how to use it.
(09 Jan '12, 14:52)
Baloo Uriza
3
OK, I stumbled into what the HSB is by accident. For others trying to find how to figure this out, it's at http://www.tomjewett.com/colors/hsb.html
(17 Jan '12, 04:28)
Baloo Uriza
1
The last referenced URL seems to be down now, the most recent internet archive link is https://web.archive.org/web/20190407225549/http://www.tomjewett.com/colors/hsb.html .
(16 Oct '20, 17:32)
Richlv
|
Rationale: I'm looking to update the "maxspeed" rendering style for JOSM to support the full range of US speed limits, and to get color consistency with GPX rendering.