GRCocoaHeads example code for CoreGraphics