public Theme(Color colorSrc, Tuple<PathStyles, StopStyles, RadiusStyles> styles, double radiusFactor) { this.colors = new Gradient(colorSrc); this.painter = new Painter(styles); this.radiusFactor = radiusFactor; }
public Theme(Color[] colorSrc, Tuple<PathStyles, StopStyles, RadiusStyles> styles, double radiusFactor) { this.colors = new Gradient(colorSrc.ThrowIfEmpty()); this.painter = new Painter(styles.ThrowIfNull()); this.radiusFactor = radiusFactor; }