8000 Bug with <Plug>ColorPickerChangeColorMode · Issue #13 · ziontee113/color-picker.nvim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Bug with <Plug>ColorPickerChangeColorMode #13

Open
loc-cv opened this issue Jul 14, 2022 · 1 comment
Open

Bug with <Plug>ColorPickerChangeColorMode #13

loc-cv opened this issue Jul 14, 2022 · 1 comment

Comments

@loc-cv
Copy link
loc-cv commented Jul 14, 2022

Another bug when I was playing with the change color mode feature.

Right now all the RGB values are 50.
Screenshot from 2022-07-14 19-12-56

I change the color mode (using ColorPickerChangeColorMode) to hsl, which is the only option.
Screenshot from 2022-07-14 19-13-08

And when I switch back to RGB, every RGB value is up by 1 (they were all 50 just before). The whole color is messed up.
Screenshot from 2022-07-14 19-13-15

The weird thing is for some colors, the color mode changing feature works ok (the RGB values are the same after switching back), but for some colors, this bug appears.

@ziontee113
Copy link
Owner
ziontee113 commented Jul 14, 2022

Thank you for opening the issue.

First of all, ColorPickerChangeColorMode only switches RGB to HSL and vise versa, it lets you change the color in RGB or HSL mode. If you want the output to be HEX, press o or use ColorPickerChangeOutputType.

About the RGB value gets converted back, it has to do with the HSL to RGB conversion. I don't think I can do any thing about this. You can run the same rgb(50,50,50) test in this online example: https://hslpicker.com/#333

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0