From f88725a7ab558585f2ca23864e7ecf4a0bff8312 Mon Sep 17 00:00:00 2001 From: s Date: Mon, 9 Sep 2024 01:10:26 +0900 Subject: [PATCH] :memo: add source for formulas --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 48caf47..edc3319 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,7 @@ import './style.css' -// https://stackoverflow.com/questions/596216/formula-to-determine-perceived-brightness-of-rgb-color +// source: https://stackoverflow.com/questions/596216/formula-to-determine-perceived-brightness-of-rgb-color +// source: https://www.w3.org/TR/AERT/#color-contrast + class ClipboardFileListener { constructor(callback: (imgData: string | ArrayBuffer) => any) { document.addEventListener("paste", event => {