> btw, how do you limit (range) a result inside the mathematical patch?

you need a somewhat goofy construct:

min(max(x, 0), 1)

this will clamp x to be between 0 and 1.  Change 0 and 1 as necessary, just 
make sure they're in the correct order.

There are other more complex functions if you want a continuous function -- 
those are beyond the scope of this email, and more along the lines of a maths 
text book :)   [such questions pop up on the list from time to time, and 
another would likely yield an interesting discussion]

--
Christopher Wright
[email protected]



 _______________________________________________
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]

Reply via email to