//========================================================================== public SvgStopElement(SvgDocument document, SvgBaseElement parent, XElement stopElement) : base(document, parent, stopElement) { var offset_attribute = stopElement.Attribute("offset"); if (offset_attribute != null) { Offset = SvgLength.Parse(offset_attribute.Value); } var stop_color_attribute = stopElement.Attribute("stop-color"); if (stop_color_attribute != null) { Color = SvgColor.Parse(stop_color_attribute.Value); } var stop_opacity_attribute = stopElement.Attribute("stop-opacity"); if (stop_opacity_attribute != null) { Opacity = SvgLength.Parse(stop_opacity_attribute.Value); } }
//========================================================================== public SvgColorPaint(SvgColor color) => Color = color;
//========================================================================== public SvgColorPaint(SvgColor color) { Color = color; }