uwdata / vsup

Code for generating Value-Suppressing Uncertainty Palettes for use in D3 charts.
https://uwdata.github.io/vsup/
MIT License
77 stars 6 forks source link

More blending modes for uncertainty #4

Open mcorrell opened 6 years ago

mcorrell commented 6 years ago

Right now uncertainty is encoded by blending to white in LAB space (more uncertainty, more whiteness). We call this mode usl (for "uncertainty-saturation-lightness").

We might want more modes. For instance, desaturating to denote uncertainty. Or just lightening to denote uncertainty. Or interpolating to a third color (that may or may not be white) to denote uncertainty.

A more user-friendly way of selecting these modes other than just passing a string to a case statement somewhere in scale would be nice as well.

mcorrell commented 6 years ago

From #5 we now have "us" (which _de-_saturates colors as uncertainty increases) and "ul" (which lightens colors as uncertainty increases).