dokozero / okcolor Goto Github PK
View Code? Open in Web Editor NEWFigma plugin for advanced color picking, with OkLCH, APCA, WCAG and more.
Home Page: https://www.figma.com/community/plugin/1173638098109123591/OkColor
License: MIT License
Figma plugin for advanced color picking, with OkLCH, APCA, WCAG and more.
Home Page: https://www.figma.com/community/plugin/1173638098109123591/OkColor
License: MIT License
Hi there! Thank you for the plugin 🙌
I noticed that lch.oklch.com and the okColor plugin show really different values for the LCH color mode. E. g. 105 and 26.3 for Chroma.
What could be the reason?
Hi,
I'd like to suggest implementing OkLrCH space instead of the current OkLCH for more perceptually uniform lightness.
Björn used it in one of these color pickers: https://bottosson.github.io/misc/colorpicker
Middle gray in OkColor is currently #636363, which is darker than the supposed #777777
Also, OkLCH suffers from an extension of dark values near Black, as you can see from this post:
https://raphlinus.github.io/color/2021/01/18/oklab-critique.html
which makes the interpolation from any light colors to black not very uniform.
I hope you will consider this in the next update.
Thank you for such a great plugin!
Cheers,
Alex
Let’s backport optimizations from OKLCH color picker. It will allow improving <canvas>
resolution.
I am creating this issue to refer it later for other developers.
Hello @freydev I'm going to need your help again.
I just released a new version and found a bug in OkLCH's render, I'm not sure if it was there before when we released version 5, maybe Chrome changed something meanwhile in their WebGL engine.
On Figma desktop, Firefox and Edge (macOS)
I reverted the update to see if it was present on the last release (5), tested on Chrome and yes, same weird bug:
It only happens in sRGB, P3 is fine, here is a capture from Chrome:
I looked into the code, especially in f_shader.glsl but I'm not that familiar with WebGL, If you know where it can come from that would be helpful (you'll see that I refactored the whole code and it's now easier to read 👍).
If you need to push a new test version in prod tell me as we can't test dev version in Chrome but only in desktop app which is a shame to debug 😔 . Thanks in advance for your time.
Hey! Thanks for the update that brings P3. I’m continuing to test it, but at first glance, it looks great!
Every time I use the plugin, I have to wrap my head around this control.
The order here is H, C, and L. This order contradicts the parameter order in the CSS notation and even the space name: LCH.
I would suggest changing the field order according to the selected color space. So it would be H, S, L for HSL, and L, C, H for OKLCH.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.