Opacity 

Opacity is a fascinating vector drawing application that can export images to the equivalent Quartz, Cocoa and JavaScript (canvas) code.