 
 public typealias Filter = CIImage -> CIImage
 
-/**
-高斯模糊滤镜（CIGaussianBlur）
-
-:param: radius 模糊半径
-
-:returns: Filter函数
-*/
-func blur(radius: Float) -> Filter {
-    return { inputImage in
-        let parameters = [
-            kCIInputImageKey: inputImage,
-            kCIInputRadiusKey: radius]
-        let filter = CIFilter(name: "CIGaussianBlur", withInputParameters: parameters)
-        return filter.outputImage
-    }
-}
+// MARK: 生成器（CICategoryGenerator）
 
 /**
 颜色生成滤镜（CIConstantColorGenerator）

    }
}




*/
func colorGenerator(color: UIColor) -> Filter {
    return { _ in
        let parameters = [ kCIInputColorKey: color ]
        let filter = CIFilter(name: "CIConstantColorGenerator", withInputParameters: parameters)
        return filter.outputImage
    }
