Attempt at a CoreGraphics translation of http://www.merowing.info/2012/04/drawing-smooth-lines-with-cocos2d-ios-inspired-by-paper/#.U-Bxx4BdXw8