You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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
changed the title
[Design proposal] P3 color space & OKLCH/OKLAB color support
Design proposal: P3 color space & OKLCH/OKLAB color support
Oct 15, 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 aninterpolate-oklch
expression to the style language).Further reading
The text was updated successfully, but these errors were encountered: