KLF.KLFVessel.controlledColor C# (CSharp) Method

controlledColor() public static method

public static controlledColor ( int seed, float sBand, float vBand ) : Color
seed int
sBand float
vBand float
return Color
        public static Color controlledColor(int seed, float sBand, float vBand)
        {
            float h;
            //deterministic random (same colour for same seed)
            System.Random r = new System.Random(seed);

            //Hue:  uniform distribution
            h = (float)r.NextDouble() * 360.0f;

            return colorFromHSV(h, 0.85f, 1.0f);
        }