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

Output in 0xRRGGBB format? #104

Open
SrBrahma opened this issue May 8, 2023 · 2 comments · May be fixed by #109
Open

Output in 0xRRGGBB format? #104

SrBrahma opened this issue May 8, 2023 · 2 comments · May be fixed by #109

Comments

@SrBrahma
Copy link

SrBrahma commented May 8, 2023

Hi, I am using PixiJs and it uses the '0xFFFFFF' notation. Do colord have this output format? I will .replace('#', '0x') for now, but a built-in way would be interesting.

@kyranet kyranet linked a pull request Aug 8, 2023 that will close this issue
@kyranet
Copy link

kyranet commented Aug 8, 2023

Hi! I opened #109, I hope that solves your issue!

I peeked around because of discordjs/discord.js#9756, which saw some demand for a color library, and base10 is just the best format since it's what Discord natively uses and it's what the library can process the fastest.

@SrBrahma
Copy link
Author

SrBrahma commented Aug 8, 2023

Awesome, Kyra!

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

Successfully merging a pull request may close this issue.

2 participants