Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FlexMonkey/SwiftGoo
Kai's Power Tools Goo - written in Swift!
https://github.com/FlexMonkey/SwiftGoo
Last synced: 1 day ago
JSON representation
Kai's Power Tools Goo - written in Swift!
- Host: GitHub
- URL: https://github.com/FlexMonkey/SwiftGoo
- Owner: FlexMonkey
- Created: 2016-04-13T16:58:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-17T15:14:47.000Z (over 8 years ago)
- Last Synced: 2024-11-07T07:13:29.480Z (7 days ago)
- Language: Swift
- Homepage:
- Size: 680 KB
- Stars: 40
- Watchers: 5
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SwiftGoo
### Kai's Power Tools Goo - written in Swift!
### Companion project to [Recreating Kai's Power Tools Goo in Swift](http://flexmonkey.blogspot.co.uk/2016/04/recreating-kais-power-tools-goo-in-swift.html)![SwiftGoo/screenshot.png](SwiftGoo/screenshot.png)
If you remember [Kai's Power Tools](https://en.wikipedia.org/wiki/Kai%27s_Power_Tools) from the '90s, here's a quick and dirty version of Goo for iPad and iPhone. It uses a simple warp kernel to move pixels around based on the direction of the user's touch.
If you have an iPhone 6s or an Apple Pencil, it also considers touch pressure.
To do: the radius of the effect is hard coded and should consider the size of the image. If you load a large image, the relatively small effect radius isn't quite right. The default Mona Lisa image 640*640 works great :)