public static float[] Color2Vector(Color color) { var p = new float[4]; p[0] = color.R; p[1] = color.G; p[2] = color.B; p[3] = color.A; return p; }