-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plans for future development #5
Comments
Hey @limzykenneth thanks for considering this library! Some notes:
I'll see what I can do about adding additional documentation and examples for your needs. |
I've now added:
So far I haven't added these as core parts of the library; happy to be convinced if users think CIELab/Luv and HSL/HSV/etc need to be core features. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, this library was pointed out to me while I am looking into rewriting the color modules of p5.js which the initial plan is to use color.js as a backing dependency, however what you have implemented here is really exciting and I am looking into using this instead of color.js.
There are several things that we need for p5.js that are not currently supported and I would like to know what your thoughts are in terms of implementing them in @texel/color, whether they are not planned to be supported or something that @texel/color would like to have. I may have some misunderstanding around colors so do point out if anything don't make sense here.
lab()
andlch()
functions are both in CIE color space which we like to support if possible. If the intention is to not support CIE colors at all then it leads to the next item.rgb(0, 128, 255)
andrgb(0 128 255)
are valid and supported CSS strings but only the former works, color words such asgreen
also does not work, alpha deserialization also does not work; for serialization,hsl
seems to be serialized into acolor(okhsl)
string instead which have less support in CSS than the nativehsl()
function.Depending on what the plan for this project is, p5.js can possibly help with providing some implementation support to implement some of the above since if we were to use @texel/color as the backing dependency of our color module, we will need to implement them anyway so I feel it's much better to do it here instead.
Really look forward to see what comes for the rest of the project!
The text was updated successfully, but these errors were encountered: