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.Versions
- 1.0.1 : fixed some errors that are now flagged by the compiler (missing
[super dealloc];
, before I realized Cocoa'sdealloc
doesn't work like C++ destructors.) (March 1, 2007)- 1.0 : it works! (December 9, 2002)
Download
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.
ScreenShots
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
- Tons of graphics calls
- There's a sample in there using Core Graphics calls in cocoa.