Giter Site home page Giter Site logo

CMYK issues about colorpicker HOT 2 OPEN

thednp avatar thednp commented on June 21, 2024
CMYK issues

from colorpicker.

Comments (2)

PitPik avatar PitPik commented on June 21, 2024

Hi @thednp The issue is not related to a bug but to wrong expectations. The initiator of colorPicker accepts color formats that are supported by the browser which are RGB, rgb, rgba, hsl and hsla. RGBA is also supported nowerdays, but I guess colorPicker doesn't (I have to look it up).

You might want to write an input that takes cmyc and convert it to rgb and feed a hidden input with the value so the hidden input triggers the colorPicker but it shows values from the cmyc input field.
If you wrap both inside a <label> tag, the click event will be transferred to the hidden input and the colorPicker should show.

Hope this helped.
Greetings.

from colorpicker.

thednp avatar thednp commented on June 21, 2024

Thanks for taking the time to reply.

I'm not using the colorpicker to use it's CMYK value as color for web elements, I know it's not supported, but I use it as a way for people to input a color in any format they have, perhaps some folk has come from print with CMYK values and wants to use those colors into web apps, converted to supported formats like rgb/hex or hsl in the near future.

I suggest you take a look, it won't take much.

from colorpicker.

Related Issues (20)

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.