Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamwulf/mmstretchgesturerecognizers
A collection of three gestures that can stretch an arbitrary view with four fingers. Used in getlooseleaf.com's clone gesture.
https://github.com/adamwulf/mmstretchgesturerecognizers
Last synced: 3 months ago
JSON representation
A collection of three gestures that can stretch an arbitrary view with four fingers. Used in getlooseleaf.com's clone gesture.
- Host: GitHub
- URL: https://github.com/adamwulf/mmstretchgesturerecognizers
- Owner: adamwulf
- License: other
- Created: 2015-02-13T19:39:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-28T06:13:36.000Z (about 8 years ago)
- Last Synced: 2024-05-01T12:30:01.775Z (10 months ago)
- Language: C++
- Homepage: http://getlooseleaf.com/opensource/
- Size: 24.5 MB
- Stars: 19
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MMStretchGestureRecognizers
=====For context about this repo, check out [this blog post](http://blog.getlooseleaf.com/post/111386290589/using-augmented-reality-code-for-a-better-stretch). These gestures power the clone gestures in [Loose Leaf](https://getlooseleaf.com).
This code provides three gestures that can be used to stretch a UIView using affine transforms. The first attempts to keep the four fingers in exactly the same visible locations on the image, but has trouble when those touches form a concave quad. The remaining two gestures allow for smooth stretching of the UIView.
Run the included example app to try each of the gestures to see their output.
## Are you using these gestures?
Let me know! I'd love to know where PerformanceBezier is using and how it's affecting your apps. Ping me
at [@adamwulf](https://twitter.com/adamwulf)!## Documentation
View the header files for full documentation.
## Including in your project
1. Link against the included OpenCV framework.
2. Copy the gesture .h and .m files into your project## License
OpenCV is licensed under BSD: [http://opencv.org/license.html](http://opencv.org/license.html)
This work is licensed under a Creative Commons Attribution 3.0 United States License.
For attribution, please include:
1. Mention original author "Adam Wulf for Loose Leaf app"
2. Link to https://getlooseleaf.com/opensource/
3. Link to https://github.com/adamwulf/PerformanceBezier## Support this framework
This framework is created by Adam Wulf ([@adamwulf](https://twitter.com/adamwulf)) as a part of the [Loose Leaf app](https://getlooseleaf.com).
[Buy the app](https://itunes.apple.com/us/app/loose-leaf/id625659452?mt=8&uo=4&at=10lNUI&ct=github) to show your support! :)