omgovich / colord

👑 A tiny yet powerful tool for high-performance color manipulations and conversions
https://colord.omgovich.ru
MIT License
1.63k stars 48 forks source link

Output in 0xRRGGBB format? #104

Open SrBrahma opened 1 year ago

SrBrahma commented 1 year ago

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 commented 11 months ago

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

I peeked around because of https://github.com/discordjs/discord.js/pull/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 commented 11 months ago

Awesome, Kyra!