Version: 1.1

Posted: 2006-04-12

Build Requirements: Xcode 2.0 or greater

Runtime Requirements: 1.4.2 or later

View Source Code:

Download Sample (“SkyCreator.zip”, 409.6K)
Download Sample (“SkyCreator.dmg”, 457.1K)



Description

This is a very simple demo that creates a random image of a starry sky using several star images of different sizes that are placed randomly on the screen. The user can drag the stars to re-arrange them. This code was written to illustrate the functionallity of QuartzDebug. There is a slow and a fast version. The slow version is commented out by default. The slow version repaints the whole window every time a star is moved, and the fast version only re-paints the dirty region. You can use

QuartzDebug to see the different behavior between the two versions.

Document Revision History

Date Notes
2006-04-12Updated compiler options to generate 1.4 compatible bytecode.
2005-06-06Demonstrates using the QuartzDebug utility with Java Applications by creating a random image of a starry sky.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.