https://github.com/younatics/triangulation
Triangulation effect in iOS
https://github.com/younatics/triangulation
Last synced: 5 months ago
JSON representation
Triangulation effect in iOS
- Host: GitHub
- URL: https://github.com/younatics/triangulation
- Owner: younatics
- License: mit
- Created: 2018-10-01T10:27:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T06:02:48.000Z (almost 7 years ago)
- Last Synced: 2024-10-18T16:18:12.215Z (12 months ago)
- Language: Swift
- Size: 8.44 MB
- Stars: 174
- Watchers: 10
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Triangulation
[](http://cocoapods.org/pods/Triangulation)
[](https://github.com/Carthage/Carthage)
[](https://github.com/younatics/Triangulation/blob/master/LICENSE)
[](http://cocoapods.org/pods/Triangulation)
[](https://developer.apple.com/swift/)## Introduction
📐 Triangulate your image! `Triangulation` will magically change your image like this!| Before | After |
| :----------: | :-----------------------: |
|  |  |## Requirements
`Triangulation` is written in Swift 4.2. Compatible with iOS 9.0+
## Installation
### Cocoapods
Triangulation is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'Triangulation'
```
### Carthage
```
github "younatics/Triangulation"
```## Usage
Add `TriangulationView` with custom cell size. That's it!
```swift
let triangleView = TriangulationView(frame: view.bounds, image: image, cellSize: 40)
view.addSubview(triangleView)
```## References
#### Please tell me or make pull request if you use this library in your application :)## Author
[younatics](https://twitter.com/younatics)## License
Triangulation is available under the MIT license. See the LICENSE file for more info.