diff --git a/Project-Aurora/Project-Aurora/Settings/Layers/AmbilightLayerHandler.cs b/Project-Aurora/Project-Aurora/Settings/Layers/AmbilightLayerHandler.cs index d35f95781..3110dd8c7 100644 --- a/Project-Aurora/Project-Aurora/Settings/Layers/AmbilightLayerHandler.cs +++ b/Project-Aurora/Project-Aurora/Settings/Layers/AmbilightLayerHandler.cs @@ -346,7 +346,18 @@ public override EffectLayer Render(IGameState gamestate) break; case AmbilightType.AverageColor: - ambilight_layer.Set(Properties.Sequence, BitmapUtils.GetAverageColor(screen)); + var average = BitmapUtils.GetAverageColor(screen); + + if (Properties.BrightenImage) + average = ColorUtils.ChangeBrightness(average, Properties.BrightnessChange); + + if (Properties.SaturateImage) + average = ColorUtils.ChangeSaturation(average, Properties.SaturationChange); + + if (Properties.HueShiftImage) + average = ColorUtils.ChangeHue(average, Properties.HueShiftAngle); + + ambilight_layer.Set(Properties.Sequence, average); break; } diff --git a/Project-Aurora/Project-Aurora/Settings/Layers/Control_AmbilightLayer.xaml b/Project-Aurora/Project-Aurora/Settings/Layers/Control_AmbilightLayer.xaml index c55876a54..d2d7b7c87 100644 --- a/Project-Aurora/Project-Aurora/Settings/Layers/Control_AmbilightLayer.xaml +++ b/Project-Aurora/Project-Aurora/Settings/Layers/Control_AmbilightLayer.xaml @@ -157,11 +157,11 @@ - +