Ejemplo n.º 1
0
        /// <summary>
        ///     Gets the color between specified values.
        /// </summary>
        /// <returns>The color between values.</returns>
        /// <param name="colorA">Color a.</param>
        /// <param name="colorB">Color b.</param>
        private Color GetColorBetweenValues(Color colorA, Color colorB)
        {
            switch (m_RandomBlend)
            {
            case ColorUtils.Gamut.RGB:
                return(m_RandomColorGenerator.Range(colorA, colorB, m_Linear));

            case ColorUtils.Gamut.HSL:
                return(m_RandomColorGenerator.RangeHsl(colorA, colorB, m_Linear));

            default:
                throw new ArgumentOutOfRangeException();
            }
        }