Beispiel #1
0
 public NvgState()
 {
     Xform   = new float[6];
     Scissor = new NvgScissor();
     Fill    = new NvgPaint();
     Stroke  = new NvgPaint();
 }
Beispiel #2
0
        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);
        }