public GradientSpec(GradientSpec spec) { _colorStops = new List <ColorStop>(spec.ColorStops); Type = spec.Type; Start = spec.Start; End = spec.End; InnerRadius = spec.InnerRadius; OuterRadius = spec.OuterRadius; }
public PaintStyle(PaintStyle paint) { Type = paint.Type; Color = paint.Color; Gradient = new GradientSpec(paint.Gradient); }