Custom functions?
Posted: Thu Dec 18, 2008 10:35 am
What I'd like is custom functions that return a number (I don't see how that would be context sensitive).
This thought came out of frustration when working on a cfdg where I need to randomly rotate and set HSB values, even with the sort of "binary search" this means a lot of rules, when I could say for instance CIRCLE { b rand01() r rand0360() sat rand01() ... } and implement both only once.
I haven't really looked through the sources of this project (if you don't count the times when I've had to made changes in order to get it to compile), but I was wondering if it could be implemented as a special rule (with recursion possibilities).
This thought came out of frustration when working on a cfdg where I need to randomly rotate and set HSB values, even with the sort of "binary search" this means a lot of rules, when I could say for instance CIRCLE { b rand01() r rand0360() sat rand01() ... } and implement both only once.
I haven't really looked through the sources of this project (if you don't count the times when I've had to made changes in order to get it to compile), but I was wondering if it could be implemented as a special rule (with recursion possibilities).