public static Color GetColor(float period) { float[] rgb = ColorScript.getRGB(convertToWavelength(period)); // Debug.Log("[" + rgb[0] + " , " + rgb[1] + " , " + rgb[2] + "]"); Color col = new Color(flattenRgb(rgb[0]), flattenRgb(rgb[1]), flattenRgb(rgb[2])); return(col); }