public static Color Vector2Color(float[] vector) { if (vector == null || (vector.Length < 4)) { throw new ArgumentException(); } return Color.FromArgb((int)vector[3], (int)vector[0], (int)vector[1], (int)vector[2]); }