Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Output in 0xRRGGBB format? #104

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

Output in 0xRRGGBB format? #104

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

Comments

@ftzi
Copy link

ftzi 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.

@ftzi
Copy link
Author

ftzi commented Aug 8, 2023

Awesome, Kyra!

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

Successfully merging a pull request may close this issue.

2 participants