Browse Source

Use var per maintainer request

Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
pull/7724/head
robloo 5 years ago
committed by GitHub
parent
commit
f221afda13
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Visuals/Media/HsvColor.cs

2
src/Avalonia.Visuals/Media/HsvColor.cs

@ -390,7 +390,7 @@ namespace Avalonia.Media
// then the chroma is maximized - this is a pure yellow, no gray of any kind.
// On the other hand, if we have RGB = (128, 128, 128), then the chroma being zero
// implies that this color is pure greyscale, with no actual hue to be found.
double chroma = max - min;
var chroma = max - min;
// If the chrome is zero, then hue is technically undefined - a greyscale color
// has no hue. For the sake of convenience, we'll just set hue to zero, since

Loading…
Cancel
Save