improved selectedMenu again
This commit is contained in:
parent
53576df72a
commit
b96993e4dd
12 changed files with 105 additions and 24 deletions
|
@ -69,7 +69,7 @@ const srgbToLinear = (srgb) => {
|
|||
* @param {Object} srgb - sRGB color
|
||||
* @returns {Number} relative luminance
|
||||
*/
|
||||
const relativeLuminance = (srgb) => {
|
||||
export const relativeLuminance = (srgb) => {
|
||||
const { r, g, b } = srgbToLinear(srgb)
|
||||
return 0.2126 * r + 0.7152 * g + 0.0722 * b
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue