This is an implementation of smooth line drawer by Krzysztof Zablocki (http://www.merowing.info/). Initially it has been written for iOS and Cocos2d, I have rewritten it for Openframeworks.
Original: http://www.merowing.info/2012/04/drawing-smooth-lines-with-cocos2d-ios-inspired-by-paper/