Thanks for that suggestion! Hadn't thought of that...
I'm also replying to myself; I figured out how to act without source
material. The function I had missed in the reference material was
destCoord (). Here is some code generating a circle centered around
(0,0):
Can you think of a good way to create an image containing a
circle? I'm surprised there isn't an Image Unit for creating
simple geometrical shapes (yet)...
I'd like to avoid to embed a bitmap in the composition for such a
simple thing. I can think of a number of ugly ways of generating
it procedurally (involving iterators), but none of them is going
to be very efficient. I also tried to create it using a • (bullet)
using Image from String, but cropping it accurately turned out to
be difficult.
I've decided that writing a CIKernel to do it is probably the
Right Thing™ to do. However, I ran into problems immediately. I
have virtually no familiarity with OpenGL Shading Language, and
the examples I found all acted on source material and did not work
as generators...
Is there any sample code available for writing generator-cikernels?