Opacity icon

Source Code Format

When you export an image as Source Code, Opacity will generate source code in your desired language (Quartz, Core Animation, Cocoa, Cocoa Touch, or JavaScript for Canvas) to draw your image. You can then incorporate this code into an application (for the Mac, iOS, or Web) to dynamically draw your image.

Source code supports Variables as well, so you can dynamically manipulate the code that is generated. Code for Quartz and JavaScript creates a drawing function that you can call. Code for Cocoa, Cocoa Touch, and Core Animation creates a view class that is a subclass of NSView, UIView, and CALayer respectively.

Related Topics

Generating Source Code