Triangular dot matrix fuzzy effects iOS source code and dot matrix fuzzy ios source code
Source code: FFAngularPointilism and FFAngularPointilism can generate triangular dot matrix blur effects like adding a filter to the UIImageView. You can blur it by means of animation or instant blur. In addition, animations with blurred mode are provided. You can configure the Blur degree and flash interval for an animation. :
Usage:
Copy the FFAngularPointilism folder in the Demo to the project, and copy the four triangle patterns in Images. xcassets to the project.
Image Blur Initialization: _ ImageView = [[FFDoubleTriangleView alloc] initWithImage: [UIImage imageNamed: @ "ww"]; [Self. view addSubview: self. imageView];
Animation Mode: [Self. imageView startAnimatedEffect: FFDoubleTriangleViewEffectMosaicFilter WithCompletion: ^ { // Complete fuzzy search }]; Blur now: [Self. imageView applyFilter]; -------------------------------------------------------------------- Fuzzy Animation: Self. shutteringView. coordinateSquaresToOmit = @ [@ [@ 0, @ 0]; _ ShutteringView = [[FFShutteringView alloc] initWithFrame: self. view. bounds]; [Self. containerShutteringView addSubview: _ shutteringView];
Animation start: [Self. shutteringView sparkLife];
Set various animation attributes: -Self. shutteringView. maximumAllowedDeathTicks = 1.0/(sender. value) * 400; -Self. shutteringView. frameRate = sender. value * 30;
For details, refer to the demo. |
Http://ios.662p.com/thread-2325-1-1.html