You cannot create compositions programmatically.
You could use an iterator to control the number of shapes and feed
each shape with
data embedded in a structure.
.xX
On Jan 25, 2007, at 8:39 AM, Joshua Ballanco wrote:
Hi,
I tried a search through the mailing list, the dev docs, and on-
line, but couldn't find a definitive yes or no, so I thought I'd
pose the question to this list:
Is it possible to create a Quartz Composition in code?
I already understand how to publish ports and control a composition
in code, but this is not exactly what I'm looking for (though, I
suppose with a creative enough composition I could potentially
achieve the same results). Basically, I'm looking to use QC as a
shortcut for drawing some simple shapes in space and moving them
around. The issue is that I'd like to determine how many shapes,
their sizes, and their positions at runtime. In other words, I'd
like to not have to code the raw GL! ;-)
So, does anyone know if this is possible? Thanks in advance for any
help and/or advice!