Skip to content

Commit

Permalink
Fix brightness adjust matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Dec 18, 2024
1 parent 984bb1d commit b87da63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/widgets/change_colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ List<double> _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<double>.from(<double>[
0.213 + cos(hue) * 0.787 + sin(hue) * -0.213,
0.715 + cos(hue) * -0.715 + sin(hue) * -0.715,
Expand Down

0 comments on commit b87da63

Please sign in to comment.