         ctx.flush()
     }
     
-    private func drawByEclipse(_ path: [CGPoint]) {
+    private func drawDot(_ path: [CGPoint]) {
         guard let ctx = UIGraphicsGetCurrentContext() else { return }
         
         ctx.setStrokeColor(strokeColor.cgColor)

    internal func commonInit() {}
    internal func debugInfo(_ string: String) { if debugInfo {print(string)}}
    
    //MARK: - Private functions
    private func takeSnapshotOfView() -> UIImage? {
        UIGraphicsBeginImageContext(CGSize(width: self.frame.size.width, height: self.frame.size.height))
        self.drawHierarchy(in: CGRect(x: 0.0, y: 0.0, width: self.frame.size.width, height: self.frame.size.height), afterScreenUpdates: true)
        let image = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()
        return image
    }
    
    //MARK: - Draw handling
    open override func draw(_ rect: CGRect) {
        super.draw(rect)

        ctx.fillPath()
        ctx.flush()
    }

    //MARK: - Private functions
    private func takeSnapshotOfView() -> UIImage? {
        UIGraphicsBeginImageContext(CGSize(width: self.frame.size.width, height: self.frame.size.height))
        self.drawHierarchy(in: CGRect(x: 0.0, y: 0.0, width: self.frame.size.width, height: self.frame.size.height), afterScreenUpdates: true)
        let image = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()
        return image
    }
}
