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

Support lab color interpolation #483

Closed
tmcw opened this issue Jun 23, 2014 · 3 comments
Closed

Support lab color interpolation #483

tmcw opened this issue Jun 23, 2014 · 3 comments

Comments

@tmcw
Copy link
Contributor

tmcw commented Jun 23, 2014

From mapbox/mapbox-gl-style-spec#62 (comment) - there are many perceptual scales, but this is a good place to start.

@mourner mourner added this to the future milestone Jun 24, 2014
@pnorman
Copy link

pnorman commented Aug 6, 2014

👍 to CIELAB or it's angular transformation, CIELch.

I'm doing all my colour picking in Lch these days

@jfirebaugh jfirebaugh removed this from the future milestone Jun 15, 2015
@lucaswoj lucaswoj removed the style label Mar 10, 2016
@tmcw
Copy link
Contributor Author

tmcw commented May 16, 2016

Now that data-driven styles have landed, I think this is actionable.

'circle-color': {
    property: 'sqrt',
    'interpolate-color': 'lab',
    stops: [
        [0, '#f1f075'],
        [250, '#e55e5e']
    ]
}

cc @lucaswoj @jfirebaugh ?

@lucaswoj
Copy link
Contributor

@tmcw Do you have thoughts on exposing a interpolate-color configuration option vs adopting a better color interpolation algorithm by default?

@lucaswoj lucaswoj changed the title Lab color interpolation Support lab color interpolation Jul 28, 2016
@tmcw tmcw mentioned this issue Sep 22, 2016
6 tasks
bensleveritt pushed a commit to bensleveritt/mapbox-gl-js that referenced this issue Oct 24, 2016
lucaswoj pushed a commit that referenced this issue Jan 11, 2017
* Dynamically include source property docs

* Omit type and vector.tileSize
karimnaaji pushed a commit that referenced this issue Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants