/// <summary> /// Calculate false color. /// </summary> private Color FalseColor(double z) { // Simple example of one way to change a number // into a color. var s = m_z_range.NormalizedParameterAt(z); s = RhinoMath.Clamp(s, 0.0, 1.0); var hue = m_hue_range.ParameterAt(s); return(ColorFromHsv(hue, 1.0, 1.0)); }