Color32 GetColor(float t) { Color color = new Color(0, 0, 0); color = colorMapper.getColor(minTemparature, maxTempatature, t); byte R = (byte)(color.r * 255); byte G = (byte)(color.g * 255); byte B = (byte)(color.b * 255); return(new Color32(R, G, B, 255)); }