slippy-colors

0.0.2 • Public • Published

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i slippy-colors

    Weekly Downloads

    0

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • virginiayung
    • mollymerp
    • tcql
    • natslaughter
    • mattficke
    • mapsam
    • jrpruit1
    • geohacker
    • davidtheclark
    • bergwerkgis
    • arunasank
    • aarthykc
    • karenzshea
    • dnomadb
    • isiyu
    • mapbox-admin
    • lbud
    • ian29
    • nickidlugash
    • samanbb
    • ajashton
    • lxbarth
    • ianshward
    • mourner
    • tristen
    • ingalls
    • ansis
    • jfirebaugh
    • miccolis
    • gretacb
    • morganherlocker
    • rclark
    • willwhite
    • springmeyer
    • kkaefer
    • yhahn