We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hexToRGB
Hi @dillionverma ,
While I was reading the code of Particles component, I found this function :
function hexToRgb(hex: string): number[] { hex = hex.replace("#", ""); const hexInt = parseInt(hex, 16); const red = (hexInt >> 16) & 255; const green = (hexInt >> 8) & 255; const blue = hexInt & 255; return [red, green, blue]; }
I guess it could a utility function that can be used by several components.
The text was updated successfully, but these errors were encountered:
appreciate it! where else would you use this?
Sorry, something went wrong.
Hi @dillionverma , it's already found on Particles but we can extract it for potential usage in other components as utility function.
No branches or pull requests
Hi @dillionverma ,
While I was reading the code of Particles component, I found this function :
I guess it could a utility function that can be used by several components.
The text was updated successfully, but these errors were encountered: