JSPM

slippy-colors

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q30632F
  • License ISC

A D3 color picker component.

Package Exports

  • slippy-colors

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 (slippy-colors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

A D3 color picker component. It's a color picker...and a slippy map.

Based on Eric Fischer's perceptually accurate color spectrum, using Tom MacWright's JavaScript implementation.

See it in action.

usage

d3.select('body')
    .append('div')
    .call(ColorPicker()
         .width(700)
         .height(500)
         .on('mouseup', function(c) { console.log(c) }));
             // or whatever you want to do with the hex color returned on click