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]; } }
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]; } }