mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Calibration - Moved color calibration reversion to ArtemisLed
This commit is contained in:
parent
a23fab7d9f
commit
a504a5f4e1
@ -68,5 +68,14 @@ namespace Artemis.Core
|
|||||||
{
|
{
|
||||||
return RgbLed.ToString();
|
return RgbLed.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the color of this led, reverting the correction done to the parent device
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public Color GetOriginalColor()
|
||||||
|
{
|
||||||
|
return RgbLed.Color.DivideRGB(Device.RedScale, Device.GreenScale, Device.BlueScale);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -38,7 +38,7 @@ namespace Artemis.UI.Shared
|
|||||||
if (DisplayGeometry == null)
|
if (DisplayGeometry == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RGB.NET.Core.Color originalColor = Led.RgbLed.Color.DivideRGB(Led.Device.RedScale, Led.Device.GreenScale, Led.Device.BlueScale);
|
RGB.NET.Core.Color originalColor = Led.GetOriginalColor();
|
||||||
byte r = originalColor.GetR();
|
byte r = originalColor.GetR();
|
||||||
byte g = originalColor.GetG();
|
byte g = originalColor.GetG();
|
||||||
byte b = originalColor.GetB();
|
byte b = originalColor.GetB();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user