color: rgb decimal

This commit is contained in:
Cynthia Foxwell 2025-07-18 21:52:08 -06:00
parent 0430a68f5a
commit 6f483d1675
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -81,6 +81,11 @@ color.callback = async function (msg, line, args, {truerandom, first}) {
value: color.toRgbString(),
inline: true,
},
{
name: "RGB Decimal",
value: `${(color.r / 255).toFixed(3)}, ${(color.g / 255).toFixed(3)}, ${(color.b / 255).toFixed(3)}`,
inline: true,
},
{
name: "HSL",
value: color.toHslString(),