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

Paul%20Johnson's gravatar image

Paul Johnson
2.9k143056
accept rate: 10%

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.

(08 Jan '12, 07:52) Paul Johnson

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.

permanent link

answered 08 Jan '12, 08:30

Gnonthgol's gravatar image

Gnonthgol ♦
13.6k15101198
accept rate: 16%

edited 17 Jan '12, 04:50

Paul%20Johnson's gravatar image

Paul Johnson
2.9k143056

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) Paul Johnson
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) Paul Johnson
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×509
×223

question asked: 08 Jan '12, 07:51

question was seen: 3,898 times

last updated: 17 Jan '12, 04:50

powered by OSQA