Coder Social home page Coder Social logo

tristen / hcl-picker Goto Github PK

View Code? Open in Web Editor NEW
202.0 9.0 42.0 1.2 MB

:art: Colorpicker for data

Home Page: https://tristen.ca/hcl-picker/

License: BSD 3-Clause "New" or "Revised" License

JavaScript 62.60% CSS 30.52% HTML 6.88%
colorpicker ui utility hcl

hcl-picker's Introduction

hcl-picker's People

Contributors

gka avatar tillwo avatar tmcw avatar tristen avatar

Stargazers

 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  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  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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hcl-picker's Issues

Sections of picker not showing

Transparent pallet underneath shows where parts of palette are supposed to be
(Tested in Chrome, Firefox and Safari on Mac OSX Yosemite)

Allow selecting color space

If I'm not mistaken, the picker uses the sRGB space, which results in very limited options e.g. at high chroma. If there was a dropdown to select others like AdobeRGB, it would be useful for a wider ranger of applications than selecting a web-safe color pallette.

Settings are not preserved through the link

Using the color picker updates the address in the URL bar in real-time, but using that link to come back to the page doesn't restore the settings used. (I'm on Chrome v49)

License information missing

Hi,

I can't seem to see any license or copying information. Which license is the project under?

Cheers,
Andrew

Hex UI tweak

It would be sweet if the hex values were in text boxes to make them easier to copy and paste. It's a would-be-nice, not a gotta-have-it.

Hue slider

@tristen, have you considered adding a hue slider? Here’s a mockup of what it might look like. Could be a very nice little feature to be able to get a wider variety of palettes.

ui

Edit: UI wasn’t accurate, so I updated that.

Colors don't have fixed Hue, as they're supposed to

Consider the following scale: http://tristen.ca/hcl-picker/#/clh/5/1.16/560003/E2A58A

If the Hue slider is fixed, I expect all colors to have the same hue value. This isn't, however, what chroma.js tells me about the colors that the picker suggests:

console.log(chroma("#560003").hcl()); 
// [32.025259877450765, 42.92174912486389, 15.411936172871435]
console.log(chroma("#AF4737").hcl()); 
// [36.77725531337734, 51.75956722662115, 44.08773663134244]
console.log(chroma("#E2A58A").hcl()); 
// [50.11947447114051, 29.803701752508704, 72.83727863959362]

All HCL color components are different. Am I missing something?

Large number of browser location changes

Possibly it's by design, but the http://tristen.ca/hcl-picker site does a pretty extreme number of location/history changes.

In less than 10 minutes clicking around the tool I got around 1700 items in my browser history, which is somewhat problematic if you use Chrome's terrible infinite scrolling history page.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.