Skip to content
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

Nearest WEB color #9

Open
bigvax opened this issue Oct 3, 2018 · 2 comments
Open

Nearest WEB color #9

bigvax opened this issue Oct 3, 2018 · 2 comments

Comments

@bigvax
Copy link

bigvax commented Oct 3, 2018

Hi!
Thank you for your useful tool.
This Color Picker is much more convenient than other similar programs for Linux.

But, I would like an additional feature - a field with the closest color from the web palette.
Approximately as it is made in EYE3 for Windows.
eye3colorpicker-screen

Thanks in advance and WBR.
Max

@bigvax
Copy link
Author

bigvax commented Oct 4, 2018

example function for this feature:

function getNearestWebSafeColor(r, g, b) {
r = int(round(( r / 255) * 5 ) * 51);
g = int(round(( g / 255) * 5 ) * 51);
b = int(round(( b / 255) * 5 ) * 51);
return (r, g, b);
}

@nielssp
Copy link
Owner

nielssp commented Oct 7, 2018

Instead of a separate text field, could it just be an alternative output-mode? (i.e. available in the Settings -> Color Output menu)

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

No branches or pull requests

2 participants