                                         
                                         for _ in 0..<_width {
                                             
-                                            var _p = 0
-                                            
-                                            var _s = __stencil
-                                            
-                                            for _ in 0..<5 {
-                                                let (s0, s1, s2, s3, s4) = _s.pointee
-                                                if winding(s0) { _p += 1 }
-                                                if winding(s1) { _p += 1 }
-                                                if winding(s2) { _p += 1 }
-                                                if winding(s3) { _p += 1 }
-                                                if winding(s4) { _p += 1 }
-                                                _s += width
-                                            }
-                                            
-                                            let _alpha = __clip.pointee * (0.04 * Double(_p))
+                                            let _alpha = __clip.pointee * (0.04 * Double(__stencil.pointee))
                                             
                                             if _alpha > 0 {
-                                                
-                                                var source = color
-                                                source.opacity *= opacity * _alpha
-                                                
-                                                __destination.pointee.blend(source: source, blendMode: blendMode, compositingMode: compositingMode)
-                                            }
-                                            
-                                            __stencil += 1
-                                            __destination += 1
-                                            __clip += 1
-                                        }
-                                        
-                                        _stencil += 5 * width
-                                        _destination += width
-                                        _clip += width
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }
-            }
-            
-        } else {
-            
-            shape.transform = transform
-            
-            let bound = shape.raster(width: width, height: height, stencil: &stencil)
-            
-            stencil.withUnsafeBufferPointer { stencil in
-                
-                if var _stencil = stencil.baseAddress {
-                    
-                    self.withUnsafeMutableImageBufferPointer { _image in
-                        
-                        if var _destination = _image.baseAddress {
-                            
-                            self.withUnsafeClipBufferPointer { _clip in
-                                
-                                if var _clip = _clip.baseAddress {
-                                    
-                                    let offset_x = max(0, min(width - 1, Int(floor(bound.x))))
-                                    let offset_y = max(0, min(height - 1, Int(floor(bound.y))))
-                                    let _width = min(width - offset_x, Int(ceil(bound.width + 1)))
-                                    let _height = min(height - offset_y, Int(ceil(bound.height + 1)))
-                                    
-                                    _stencil += offset_x + offset_y * width
-                                    _destination += offset_x + offset_y * width
-                                    _clip += offset_x + offset_y * width
-                                    
-                                    for _ in 0..<_height {
-                                        
-                                        var __stencil = _stencil
-                                        var __destination = _destination
-                                        var __clip = _clip
-                                        
-                                        for _ in 0..<_width {
-                                            
-                                            let _alpha = __clip.pointee
-                                            
-                                            if winding(__stencil.pointee) && _alpha > 0 {
                                                 
                                                 var source = color
                                                 source.opacity *= opacity * _alpha

                                    let _width = min(width - offset_x, Int(ceil(bound.width + 1)))
                                    let _height = min(height - offset_y, Int(ceil(bound.height + 1)))
                                    
                                    _stencil += offset_x + 5 * offset_y * width
                                    _destination += offset_x + offset_y * width
                                    _clip += offset_x + offset_y * width
                                    

                }
            }
            
        } else {
            
            shape.transform = transform
            
            let bound = shape.raster(width: width, height: height, stencil: &stencil)
            
            stencil.withUnsafeBufferPointer { stencil in
                
                if var _stencil = stencil.baseAddress {
                    
                    self.withUnsafeMutableImageBufferPointer { _image in
                        
                        if var _destination = _image.baseAddress {
                            
                            self.withUnsafeClipBufferPointer { _clip in
                                
                                if var _clip = _clip.baseAddress {
                                    
                                    let offset_x = max(0, min(width - 1, Int(floor(bound.x))))
                                    let offset_y = max(0, min(height - 1, Int(floor(bound.y))))
                                    let _width = min(width - offset_x, Int(ceil(bound.width + 1)))
                                    let _height = min(height - offset_y, Int(ceil(bound.height + 1)))
                                    
                                    _stencil += offset_x + offset_y * width
                                    _destination += offset_x + offset_y * width
                                    _clip += offset_x + offset_y * width
                                    
                                    for _ in 0..<_height {
                                        
                                        var __stencil = _stencil
                                        var __destination = _destination
                                        var __clip = _clip
                                        
                                        for _ in 0..<_width {
                                            
                                            let _alpha = __clip.pointee
                                            
                                            if winding(__stencil.pointee) && _alpha > 0 {
                                                
                                                var source = color
                                                source.opacity *= opacity * _alpha
                                                
                                                __destination.pointee.blend(source: source, blendMode: blendMode, compositingMode: compositingMode)
                                            }
                                            
                                            __stencil += 1
                                            __destination += 1
                                            __clip += 1
                                        }
                                        
                                        _stencil += width
                                        _destination += width
                                        _clip += width
                                    }
                                }
                            }
                        }
                    }
                }
            }
            
        }
    }
}
