Giter Site home page Giter Site logo

holbrookdev / ok-color-picker Goto Github PK

View Code? Open in Web Editor NEW
55.0 1.0 2.0 1.42 MB

🎨 Pick colors using the Okhsv and Okhsl color spaces (based on Oklab).

Home Page: https://ok-color-picker.netlify.app

License: MIT License

HTML 9.90% TypeScript 71.53% CSS 18.58%
color-picker oklab okhsv okhsl colorpicker color colors

ok-color-picker's Introduction

ok-color-picker's People

Contributors

holbrookdev 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

Watchers

 avatar

Forkers

myndex lunelson

ok-color-picker's Issues

Wrong argument reference

Hey there, I think this project is great. I was reading through the code and noticed this line in which the second argument of this function is overwritten with a value derived from the first...

srgb2 = <Color>srgb1.map((v) => v / 255);

I could submit a PR if you like 😉

store Color Code in URL

one thing i do often is keep multiple tabs of OK Color Picker open to create a palette.

since the color code isn't stored in the URL, i lose my picked color when reloading the page.
this isn't only a problem when i accidentally reload the page, but especially when my browser automatically puts the tab in sleep mode:

after opening the tab in sleep mode, the page has to reload, so because the color code isn't stored in the URL i have to restart with the default color.


YouTube player stores the video ID in the URL so that reloading the page keeps the video you meant to watch instead of returning to the start page, and it makes it possible to share videos. the format is broken down like this:

  1. static part: https://www.youtube.com/watch?v=
  2. video ID, e.g. dQw4w9WgXcQ

together they make the complete video link:
https://www.youtube.com/watch?v=dQw4w9WgXcQ

BeepBox uses a similar format to store song data:

  1. static part: https://www.beepbox.co/#
  2. song data, e.g. 9n10sbk0l00e03t2Qa7g03j03r1i0o4T0v1u10f0qg01d04w2h0E0basp1RFE-430R9HYkzE8X3nViOOHb8W2ehdvBbbaIIzI8WOfcP9vgCR-X3n

together they make the complete song link:
https://www.beepbox.co/#9n10sbk0l00e03t2Qa7g03j03r1i0o4T0v1u10f0qg01d04w2h0E0basp1RFE-430R9HYkzE8X3nViOOHb8W2ehdvBbbaIIzI8WOfcP9vgCR-X3n

OK color picker would benefit from a similar format:

  1. static part: https://ok-color-picker.netlify.app/#color=
  2. color code, e.g. aa9eef

together these parts would make the complete color link:
https://ok-color-picker.netlify.app/#color=aa9eef

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.