public bool IsFill()
{
if(_fillColor == null)
return (IsLinearGradiantFill() || IsRadialGradiantFill());
return (_fillColor.Value.colorType != SVGColorType.None);
}
public void Render() { Color _color = Color.black; bool use_color = false; if (_paintable.IsFill() && !_paintable.IsLinearGradiantFill()) { _color = _paintable.fillColor.Value.color; use_color = true; } else if (_paintable.strokeColor != null) { _color = _paintable.strokeColor.Value.color; use_color = true; } for (int i = 0; i < _elementList.Count; i++) { ISVGDrawable temp = _elementList[i]; if (temp != null) { if (use_color) { _render.SetColor(_color); } temp.Render(); } } }