Exemple #1
0
        OnColor FalseColor(double z)
        {
            // Simple example of one way to change a number into a color.
            double s = m_z_range.NormalizedParameterAt(z);

            if (s < 0.0)
            {
                s = 0.0;
            }
            else if (s > 1.0)
            {
                s = 1.0;
            }
            double  hue   = m_hue_range.ParameterAt(s);
            OnColor color = new OnColor();

            color.SetHSV(hue, 1.0, 1.0);
            return(color);
        }