question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discussion: Next Iteration of ColorHelper

See original GitHub issue

The next iteration of ColorHelper may change some things. The aim is to make the library more maintainable. And easier to support.

ColorHelper was originally coded up very fast as a proof of concept, but it is also a bit of a mess inside. It also may be able to be improved to more match what people need, then what I thought was “cool” at the time. The plan is slowly evolving, so I’m open to gathering input as I tackle different areas.

I’d love to hear how people would like it to work differently. Not all Ideas may be implementable. I know processing color variables is one that people have wanted for a long time, but without running a separate process that indexes the files (like an LSP server) that may not be possible (or at least easily doable).

  • I’m re-writing the CSS color library. It will be stand alone and you can feed it CSS color syntax and get back a color object. You can translate between the colors and perform augmentation on them if necessary.

  • Define custom outputs

  • Define custom color formats. This may be a little bit involved, but with the new library, it should be possible.

  • Handle color formats from the latest spec: LCH, LAB, gray() (fix existing support as it should utilize LCH color space), etc.

  • Better color picker (and can be used anywhere).

  • Streamline color detection in a file.

  • Support and options for rendering previews of colors that are out of gamut.

  • more to come

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:29 (24 by maintainers)

github_iconTop GitHub Comments

1reaction
facelessusercommented, Sep 14, 2020

Ignoring the artifacts in this gif, the color picker will now adjust the rainbow box according to the saturation of the target color. And since we no longer round trip back to RGB each time, we don’t lose the hue angle like we used to when you reduce saturation to zero. We now stay in the HSL color space when in HSL.

picker

0reactions
facelessusercommented, Sep 25, 2020

Any work to create an async special class that can be used by anyone is going to have to be done as a separate issue. I’ve spent the last number of weeks doing an extensive overhaul to ColorHelper to improve behavior add long-overdue features and make it more flexible and easier for me to maintain.

Frankly, I’m going to need a break 😆. But I’m excited to make a beta available and start getting feedback. I’m going to close this issue for now and open a new beta issue once it is setup for testing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

typing of Color is incorrect in ColorHelper constructor #1673
Describe the bug in version 18 the following code worked: this.data = ['No Data']; this.colors = new ColorHelper({ domain: ['#ccc'] } ...
Read more >
A .NET Color Console Helper - Rick Strahl's Web Log
In this short post I'll discuss a small Console helper class I've been using to make it easier and more consistent to use...
Read more >
ColorHelper 2.0.0 - Plugin Announcements - Sublime Forum
ColorHelper 2.0.0 has been released with a new feature. ColorHelper can now show inline color previews in code via ST3 3118+ phantoms.
Read more >
Some issues obtaining the latest version of Flot - Google Groups
This discussion is concurrent with my attempt to migrate from v0.8.3. My first attempt was to simply ... 3.2.9/source/jquery.colorhelpers.js"></script>
Read more >
Stable channel release notes for the Windows App SDK
The following releases of the stable channel are currently available: Version 1.2; Version 1.1; Version 1.0; Version 0.8; Version 0.5.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found