mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
Fixed wrong color-calculation for novation devices
This commit is contained in:
parent
4c90edf614
commit
5d3a83335b
@ -164,10 +164,10 @@ namespace RGB.NET.Devices.Novation
|
||||
return (int)Math.Ceiling(color.Value * 3); // red with brightness 1, 2 or 3
|
||||
|
||||
if ((color.Hue >= 30) && (color.Hue < 90)) // yellow with brightness 17, 34 or 51
|
||||
return (int)Math.Ceiling(color.Value * 17);
|
||||
return (int)Math.Ceiling(color.Value * 3) * 17;
|
||||
|
||||
if ((color.Hue >= 90) && (color.Hue < 150)) // green with brightness 16, 32 or 48
|
||||
return (int)Math.Ceiling(color.Value * 16);
|
||||
return (int)Math.Ceiling(color.Value * 3) * 16;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user