public static Color ToColor(int r, int g, int b) { return(Color.FromArgb(MathUtility.Clamp(r, 0, 255), MathUtility.Clamp(g, 0, 255), MathUtility.Clamp(b, 0, 255))); }