Add int channel version of Color.FromAhsl.

This commit is contained in:
Paul Chote
2019-03-09 22:27:40 +00:00
committed by abcdefg30
parent 6927767013
commit d70055c38d

View File

@@ -59,6 +59,11 @@ namespace OpenRA.Primitives
return FromArgb(alpha, (int)(rgb[0] * 255), (int)(rgb[1] * 255), (int)(rgb[2] * 255));
}
public static Color FromAhsl(int h, int s, int l)
{
return FromAhsl(255, h / 255f, s / 255f, l / 255f);
}
public static Color FromAhsl(float h, float s, float l)
{
return FromAhsl(255, h, s, l);