Incidentally, you can very easily draw a 2D circle using a CIFilter patch.
=================================================
/*
Draws circle of specified radius with centre at specified position.
Edge of circle is blurred by amount set for bluriness.
Blurinness must be greater than 0.0
*/
kernel vec4 alphaCircle(sampler image, vec2 center, float radius, float
bluriness)
{
// Normalised coordinates of working pixel
vec2 xyNorm = samplerCoord(image) / samplerSize(image);
// Distance of working pixel from centre point
float dist = distance(xyNorm,center);
// Alpha value
float alpha = smoothstep(radius+bluriness,radius,dist);
return vec4(1.0,1.0,1.0,alpha);
}
=================================================
gives you a nice antialiased white circle with a transparent background.
Note:
you'll need to feed it with an image input of some kind, and if the image isn't
square, your circle will be oval.
There's probably a way of using the JavaScript option in the QC 3.x CIFilter
patch to do away with the need to feed a base image into the filter, but I'm on
a Tiger machine at the moment, so can't test it.
a|x
http://machinesdontcare.wordpress.com
----- Original Message ----
From: Christopher Wright <[EMAIL PROTECTED]>
To: Memo Akten <[EMAIL PROTECTED]>; Quartz Composer Dev List
<[email protected]>
Sent: Thursday, 31 July, 2008 12:33:12 PM
Subject: Re: Private Settings (WAS: draw a friggin circle and rotate it)
> wow! didn't know bout those private settings! is there any
> documentation on them anywhere?
There are scattered notes here and there on various websites, but no
formal documentation, and nothing comprehensive that I'm aware of.
Play with them and see what happens I guess :)
--
[ christopher wright ]
[EMAIL PROTECTED]
http://kineme.net/
__________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at
Yahoo! http://uk.docs.yahoo.com/ymail/new.html _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]