Skip to content

Commit b4f7a5e

Browse files
committed
Fix brightness calculation in RippleEffect (#14)
1 parent f14b7f7 commit b4f7a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugins/Effects/TTController.Plugin.RippleEffect/RippleEffect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public override IDictionary<PortIdentifier, List<LedColor>> GenerateColors(List<
4949
for (var i = 0; i < length; i++)
5050
{
5151
var idx = Wrap(_rotation - i, config.LedCount);
52-
colors[idx] = LedColor.FromHsv(hue, saturation, value - (double)i / length);
52+
colors[idx] = LedColor.FromHsv(hue, saturation, value * (length - i) / length);
5353
}
5454

5555
result.Add(port, colors);

0 commit comments

Comments
 (0)