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

Always include alpha in hex output? #50

Closed
brettvitaz opened this issue May 31, 2022 · 3 comments
Closed

Always include alpha in hex output? #50

brettvitaz opened this issue May 31, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@brettvitaz
Copy link

I am developing an OctoPrint plugin that controls NeoPixels connected to a Raspberry Pi, and I am using this library as the color picker. Thank you so much for creating it.

The NeoPixels I use have a white channel, which is nearly perfectly controlled with the alpha slider. The exception is that when the slider is at 100% the hex value output is not appended with "ff". This can be seen with the screen shots included. Is there a way to keep the alpha value attached to the hex output?

Screen Shot 2022-05-31 at 2 27 15 PM

Screen Shot 2022-05-31 at 2 27 30 PM

@mdbassit
Copy link
Owner

mdbassit commented Jun 1, 2022

Thank you for your kind words!
Right now the color picker always strips the alpha value when it's at 100%, but I will look into adding an option to always keep it.

@mdbassit mdbassit added the enhancement New feature or request label Jun 1, 2022
@brettvitaz
Copy link
Author

Thank you! The enhancement works perfectly.

@melloware
Copy link
Contributor

I have published all the latest fixes to NPM as well.

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

No branches or pull requests

3 participants