/potrace

Transform a bitmap into a smooth, scalable vector image.

Primary LanguageSwiftGNU General Public License v2.0GPL-2.0

Swift Potrace

This is a Swift 5.0 compatible port of the JavaScript port of Potrace. Potrace allows you to transform a bitmap into a smooth, scalable vector image.

It includes a getBezierPath() function that returns a UIBezierPath for easy rendering on iOS (see included demo app).

func getBezierPath(scale size: Double = 1.0) -> UIBezierPath

screenshot

Licensed under GPL v2. Ditsributed without any waranty.