Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Support color operation functions in style #223

Closed
nickidlugash opened this issue May 20, 2014 · 4 comments
Closed

Support color operation functions in style #223

nickidlugash opened this issue May 20, 2014 · 4 comments

Comments

@nickidlugash
Copy link
Contributor

Can we support color operation functions similar to the LESScss-type color functions supported in cartoCSS?

E.g.

lighten(constant, %)
darken(constant, %)
desaturate(constant, %)
spin(constant, %)
mix(constant1, constant2, %)
fadeout(constant, %)

If this is possible, does anyone have a sense as to how long it would take to implement? If it's not a quick thing then it's not high-priority for WWDC, but if it is quick then it could potentially save us a lot of time in the styling phase.

/CC @edenh @mourner @incanus @kkaefer

@kkaefer
Copy link
Member

kkaefer commented May 21, 2014

@mourner Is this implemented in GLJS?

@mourner
Copy link
Member

mourner commented May 21, 2014

@kkaefer Nope, not yet.

@incanus
Copy link
Contributor

incanus commented May 22, 2014

If it's not a quick thing then it's not high-priority for WWDC

I don't think this is quick. I don't think the math is hard, but parsing would take some work, especially on native.

@jfirebaugh
Copy link
Contributor

mapbox/mapbox-gl-style-spec#38

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants