Companion project to Recreating Kai's Power Tools Goo in Swift
If you remember Kai's 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 :)