Skip to content

Commit 4c29e58

Browse files
Update Microsoft.Toolkit.Uwp.UI.Controls/ColorPicker/ContrastBrushConverter.cs
1 parent 4efb60c commit 4c29e58

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/ColorPicker/ContrastBrushConverter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ private bool UseLightContrastColor(Color displayedColor)
109109
// If the third dimension is value, then we won't be updating the spectrum's displayed colors,
110110
// so in that case we should use a value of 1 when considering the backdrop
111111
// for the selection ellipse.
112-
113112
double rg = displayedColor.R <= 10 ? displayedColor.R / 3294.0 : Math.Pow((displayedColor.R / 269.0) + 0.0513, 2.4);
114113
double gg = displayedColor.G <= 10 ? displayedColor.G / 3294.0 : Math.Pow((displayedColor.G / 269.0) + 0.0513, 2.4);
115114
double bg = displayedColor.B <= 10 ? displayedColor.B / 3294.0 : Math.Pow((displayedColor.B / 269.0) + 0.0513, 2.4);

0 commit comments

Comments
 (0)