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

    Install

    npm i slippy-colors

    DownloadsWeekly Downloads

    1

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar