Exemplo n.º 1
0
        private void Build()
        {
            this.range = new Color[colors];
            Color current = color1;

            range[0] = current;
            for (int i = 1; i < colors; i++)
            {
                range[i] = ColorRange.Morph(factor, current, color2);
                current  = range[i];
            }
        }
Exemplo n.º 2
0
        private void Build()
        {
            this.range = new Color[colors];
            Color current = color;

            range[0] = current;
            for (int i = 1; i < colors; i++)
            {
                if (shade)
                {
                    range[i] = ColorRange.Shade(factor, current);
                }
                else
                {
                    range[i] = ColorRange.Tint(factor, current);
                }
                current = range[i];
            }
        }