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

Reduce saturation of pitch outline color #3658

Merged
merged 1 commit into from
Feb 2, 2019

Conversation

jeisenbe
Copy link
Collaborator

Related to #3651 and #3517

Changes proposed in this pull request:

  • Change the pitch outline color to be the pitch color, darkened 20% and desaturated 10%
  • Also changes track outline color in the same way. (The track and track outline colors are the same as the pitch and pitch outline colors currently)

Explanation:

  • In Add icons for popular sports pitches #3651 and Coordinate shades of non-physical green areas (meta-ticket) #3517, it's been suggested that the pitch outline is not harmonious with the pitch background color.
  • The current pitch outline is 30% darker and 20% more saturated than the pitch color (#aae0cb or Lch(85,22,168). This is a much higher chroma than the pitch background color, so the outline does not appear to be based on the same color.
  • Examining the outline colors for other features, such as residential, commercial and industrial land, shows than most are 15 darker and just slightly higher chroma (in Lch). So a more appropriate color for pitch and track outlines would be Lch 70,28,168 - 15 points darker than @pitch, and slightly higher chroma: #74b9a0
  • Some testing showed that desaturate(darken(@pitch, 20%), 10%) results in an outline color very similar to #74b9a0 - yes, this is still higher chroma than @pitch, even with desaturate 10%.

Test rendering with links to the example places:

https://www.openstreetmap.org/#map=17/40.55731/-122.34847
Before
pitches-master-17 40 55732 -122 34847

After (Darken20%, desaturate 10%)
pitches-darken20-desat10-17 40 55731 -122 34847

Compare to earlier test with hard-coded #74b9a0 for pitch outline:
pitches-master-17 40 55732 -122 34847

Other examples (after PR):
https://www.openstreetmap.org/#map=16/40.5941/-122.3924
parkpitches-darken20-desat10-16 40 5941 -122 3924

https://www.openstreetmap.org/#map=16/40.5902/-122.4029.png
landcolor-darken20-desat10-16 40 5902 -122 4029

This is approximately #74b9a0 Lch 70,28,168 - 15 points darker than @pitch, same chroma and hue
Also changes track outline color - which is the same as @pitch in this style currently
@imagico imagico merged commit bf13f67 into gravitystorm:master Feb 2, 2019
@imagico
Copy link
Collaborator

imagico commented Feb 2, 2019

Thanks.

Note the convention is to list Lch color values only if the color was chosen in Lch color space. If like here the color is chosen as an sRGB color this does not make sense.

@jeisenbe
Copy link
Collaborator Author

jeisenbe commented Feb 2, 2019 via email

@imagico
Copy link
Collaborator

imagico commented Feb 2, 2019

That's not what i meant - i meant you added the Lch values in a comment in

@pitch: #aae0cb; // Lch(85,22,168) also track

despite the color being not changed and not originally chosen in Lch. No big deal.

@jeisenbe jeisenbe deleted the pitch branch February 3, 2019 00:09
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

Successfully merging this pull request may close these issues.

2 participants