BigTed.ProgressHUD.CreateRingLayer C# (CSharp) Method

CreateRingLayer() private method

private CreateRingLayer ( global::System.Drawing.PointF center, float radius, float lineWidth, UIColor color ) : CAShapeLayer
center global::System.Drawing.PointF
radius float
lineWidth float
color UIColor
return CAShapeLayer
        CAShapeLayer CreateRingLayer(CGPoint center, float radius, float lineWidth, UIColor color)
        {
            var smoothedPath = CreateCirclePath (center, radius, 72);
            var slice = new CAShapeLayer ();
            slice.Frame = new CGRect (center.X - radius, center.Y - radius, radius * 2, radius * 2);
            slice.FillColor = UIColor.Clear.CGColor;
            slice.StrokeColor = color.CGColor;
            slice.LineWidth = lineWidth;
            slice.LineCap = CAShapeLayer.JoinBevel;
            slice.LineJoin = CAShapeLayer.JoinBevel;
            slice.Path = smoothedPath.CGPath;
            return slice;
        }