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

Design proposal: P3 color space & OKLCH/OKLAB color support #852

Open
russss opened this issue Oct 10, 2024 · 1 comment
Open

Design proposal: P3 color space & OKLCH/OKLAB color support #852

russss opened this issue Oct 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@russss
Copy link

russss commented Oct 10, 2024

The P3 color space is a replacement for sRGB which supports a wider range of colors. It is now relatively widely supported by web browsers and modern display hardware. It appears to be supported by WebGL. I would like to make maps using the secret new colors.

OKLCH is a new color format (i.e. an alternative to RGB/HSL/LAB) which supports addressing all the colors in the P3 color space (and more). It also provides better, more perceptually uniform lightness and hue transitions than the older alternatives, which would make choropleth/heatmaps look nicer. It is widely supported in web browsers in CSS4.

I think Maplibre should add support for the P3 color space and the OKLCH color format (which would involve adding an oklch() function and an interpolate-oklch expression to the style language).

Further reading

@HarelM HarelM transferred this issue from maplibre/maplibre-gl-js Oct 10, 2024
@HarelM HarelM changed the title P3 color space & OKLCH/OKLAB color support [Design proposal] P3 color space & OKLCH/OKLAB color support Oct 10, 2024
@HarelM HarelM added the enhancement New feature or request label Oct 10, 2024
@HarelM
Copy link
Collaborator

HarelM commented Oct 10, 2024

I moved this issue here, to be discussed as part of style spec changes.
Note that in the past we introduced some CSS4 color support:
#175
This sounds a bit more complicated, but I don't see a reason not to introduce this.

@HarelM HarelM changed the title [Design proposal] P3 color space & OKLCH/OKLAB color support Design proposal: P3 color space & OKLCH/OKLAB color support Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants