BorkWare GrafDemo

(last updated March 1, 2007 - fixed project to work with latest Xcode)

What It Is

One day MarkD was dinking around.
I came across some of Apple's documentation for the Quartz Core Graphics calls. They did some neat stuff. Then I started playing around with random Cocoa NSBezierPath goodies. Before I knew it, I had a litte demo program.
This is the current version of the GrafDemo, which shows some of the API calls and behavior relating to lines, curves, images, and transformation matrices. And just for fun I stuck in some of the sample code using CG calls as well.



Download GrafDemo (v1.0), 81K (compressed disk image format)

Download Pröject (with source) (v1.0.1), 50K (tar.gz format)

Known Problems

in 1.0
  • None so far.


The ever-exciting menu window. Click a button to get a demo

Play with line attributes

Click on curve control points and drag them around. Also play with the different fill modes.

Play with scaling, translation, and rotation. Also see what happens to the transformation matrix as you do stuff

Here are Core Graphics CG calls made in a Cocoa program.

Items of interest about the code

borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book