private static RageSpline.Fill Adapt(Spline.FillType fillType) { switch (fillType) { case Spline.FillType.Gradient: return(RageSpline.Fill.Gradient); case Spline.FillType.Landscape: return(RageSpline.Fill.Landscape); case Spline.FillType.None: return(RageSpline.Fill.None); case Spline.FillType.Solid: return(RageSpline.Fill.Solid); default: return(RageSpline.Fill.None); } }
public void CopyDataFrom(RageSvgStyle style) { OutlineType = style.OutlineType; OutlineColor1 = style.OutlineColor1; OutlineColor2 = style.OutlineColor2; OutlineAlpha = style.OutlineAlpha; OutlineWidth = style.OutlineWidth; CornersType = style.CornersType; FillType = style.FillType; RageSvgGradient = style.RageSvgGradient; FillColor1 = style.FillColor1; FillColor2 = style.FillColor2; FillColor1Alpha = style.FillColor1Alpha; FillColor2Alpha = style.FillColor2Alpha; HasFill = style.HasFill; HasOutline = style.HasOutline; HasGradient = style.HasGradient; }
public RageSvgStyle() { OutlineType = Spline.OutlineType.None; OutlineColor1 = Color.black; OutlineColor2 = Color.black; OutlineAlpha = 1f; OutlineWidth = 1f; CornersType = Spline.CornerType.Beak; //Was: Default FillType = Spline.FillType.Solid; RageSvgGradient = null; FillColor1 = Color.black; FillColor2 = Color.black; FillColor1Alpha = 1f; FillColor2Alpha = 1f; HasFill = true; HasOutline = false; HasGradient = false; }