private Vector4 Color(float t) { PerlinNoise p = new PerlinNoise(42); float x = 0.0f + t * 1.0f; float n = (float)p.Noise(x, 0.0f, 0.0f); float h = 180.0f + 180.0f * n; float s = 0.9f; float v = 0.9f; HSVColor hsv = new HSVColor(h, s, v); RGBColor rgb = new RGBColor(); hsv.RGB(out rgb); return(new Vector4(rgb.R, rgb.G, rgb.B, 1.0f)); }