JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q25382F
  • License UNLICENSED

Package Exports

  • picolor-js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (picolor-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

picolor.js

JavaScript color picker for picking colors in LCH space. It is optimized for picking visually distinct colors for maps, but can be used for anything else.

Why not use a stock color picker?

Picking suitable colors for maps are hard, especially when it comes to selecting visually distinct colors for a range of values. picolor.js aims to ease that process by providing smart pre-set visually distinct colors and palettes.

Demo

Color Wheel

Build from source

Prerequisites

  1. node.js

Build

  1. npm install
  2. npm run build

TODO

  • Make sizing configurable
  • Single Picker: Use only canvas
  • Palette Picker: Interpolate colors for qualitative palette where number of categories > 12
  • Palette Picker: Lighten/darken palettes when user drags slider up/down

Color Brewer
Interpolating colors
Generating multi-hued color scales
chroma.js