d3 / d3-color

Color spaces! RGB, HSL, Cubehelix, CIELAB, and more.
https://d3js.org/d3-color
ISC License
398 stars 91 forks source link

formatHex with alpha channel #98

Closed hellonearthis closed 2 years ago

hellonearthis commented 2 years ago

The current .formatHex returns a hex code for the RGB colour value and drops the Alpha channel.

It would be useful if the Alpha channel was included.

Fil commented 2 years ago

yes. duplicate of https://github.com/d3/d3-color/issues/78