public NvgState() { Xform = new float[6]; Scissor = new NvgScissor(); Fill = new NvgPaint(); Stroke = new NvgPaint(); }
public NvgPaint Clone() { var newPaint = new NvgPaint(); Array.Copy(Xform, newPaint.Xform, Xform.Length); Array.Copy(Extent, newPaint.Extent, Extent.Length); newPaint.Radius = Radius; newPaint.Feather = Feather; newPaint.InnerColor = InnerColor; newPaint.OuterColor = OuterColor; newPaint.Image = Image; return(newPaint); }