From b87da63d29bef1f12c1fa5e01faf250418b3fcc0 Mon Sep 17 00:00:00 2001 From: Vincent Velociter Date: Wed, 18 Dec 2024 18:57:46 +0100 Subject: [PATCH] Fix brightness adjust matrix --- lib/src/widgets/change_colors.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/widgets/change_colors.dart b/lib/src/widgets/change_colors.dart index 9bac854..a4db34d 100644 --- a/lib/src/widgets/change_colors.dart +++ b/lib/src/widgets/change_colors.dart @@ -74,7 +74,7 @@ List _adjustMatrix({required double hue, required double brightness}) { ]; // dart format on } - final brightnessValue = brightness <= 0 ? brightness * 255 : brightness * 100; + final brightnessValue = brightness <= 0 ? brightness * 100 : brightness * 100; return List.from([ 0.213 + cos(hue) * 0.787 + sin(hue) * -0.213, 0.715 + cos(hue) * -0.715 + sin(hue) * -0.715,