jkomoros / adjacent-possible-viz

Simple visualization library for creating schematic adjacent possible visualizations
Apache License 2.0
4 stars 0 forks source link

Allow modifying the color scale values #12

Open jkomoros opened 3 years ago

jkomoros commented 3 years ago

The logic now does manual color calculations, so you can't do it in CSS very easily.

They're currently hardcoded in _htmlForCell in map-visualization.js

jkomoros commented 3 years ago
jkomoros commented 3 years ago

npm package color-rgba looks exactly like what I want, but the polymer cli server doesn't handle its es6 imports of other packages.

Maybe snowpack? https://www.snowpack.dev/concepts/how-snowpack-works previously pika, as described here http://dplatz.de/blog/2019/es6-bare-imports.html

jkomoros commented 3 years ago

https://github.com/substack/parse-color also seems reasonable... but also doesn't work