Sublime-Colorcoder icon indicating copy to clipboard operation
Sublime-Colorcoder copied to clipboard

Improved palette?

Open ovikholt opened this issue 4 years ago • 2 comments

Hi vprimachenko. I use your plugin every day. I've used it ever since I had the idea (mysel, I might add, however I never posted about it online unlike Evan Brooks) of coding in color, at Google, in 2014.

I have a question for you and I'd probably be willing to contribute the implementation: Do you suppose it's possible to improve the palette, that is, the colors being used? I have a feeling there could be a few more colors.

ovikholt avatar Apr 13 '20 16:04 ovikholt

I should add, that it's extremely impressive how you've managed to write a Sublime Text extension. I seriously do not understand how one would go about doing that, how one would figure out what symbols are available.

ovikholt avatar Apr 13 '20 18:04 ovikholt

You can see my tweaks for color generation at https://github.com/dungsaga/Sublime-Colorcoder/tree/hls-color-tweak (using lambda lightness_fn and saturation_fn) and at https://github.com/dungsaga/Sublime-Colorcoder/tree/crc-tweak(using lambda weigh_fn).

There are 256 colors. I think it's enough, especially with dense code. But you can add more colors in function crc of class crc8.

You can also look at some good idea in extension Background Phi Colors for vscode ![Background Phi Colors] (https://github.com/wraith13/background-phi-colors-vscode/raw/master/images/screenshot/demo.gif)

dungsaga avatar May 07 '20 08:05 dungsaga