From 6e993140cbeb5bc4db60284f26cfe66b082407aa Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Fri, 6 Jan 2023 11:14:26 +0200 Subject: [PATCH] fix luminance constant --- lifehash/lifehash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lifehash/lifehash.py b/lifehash/lifehash.py index 868965a..9208dd1 100644 --- a/lifehash/lifehash.py +++ b/lifehash/lifehash.py @@ -236,7 +236,7 @@ def darken(self, t): return self.lerp_to(Colors.black, t) def luminance(self): - return math.sqrt(math.pow(0.299 * self.r, 2) + math.pow(0.587 * self.g, 2) + math.pow(0.144 * self.b, 2)) + return math.sqrt(math.pow(0.299 * self.r, 2) + math.pow(0.587 * self.g, 2) + math.pow(0.114 * self.b, 2)) def burn(self, t): f = max(1.0 - t, 1.0e-7)