Change Color.ToAhsv to tuple syntax.

This commit is contained in:
Paul Chote
2021-04-12 18:34:33 +01:00
committed by teinarss
parent 96e333a30e
commit 57d955ec72
5 changed files with 9 additions and 13 deletions

View File

@@ -49,10 +49,10 @@ namespace OpenRA.Primitives
return FromAhsv(255, h, s, v);
}
public void ToAhsv(out int a, out float h, out float s, out float v)
public (float A, float H, float S, float V) ToAhsv()
{
a = A;
(h, s, v) = RgbToHsv(R, G, B);
var (h, s, v) = RgbToHsv(R, G, B);
return (A, h, s, v);
}
Color(long argb)