@theodorejb/color-detect
Advanced tools
Changelog
[2.0.0] - 2022-11-20
colorLuminance()
function which implements the W3C algorithm to determine a color's relative luminance.colorToRgbaArray()
to simply colorToRgba()
.isLightColor()
now correctly follows W3C algorithm for comparing color contrast.Changelog
[1.0.1] - 2022-04-03