Context free weights
Posted: Wed Apr 04, 2007 5:59 am
Hi,
I'm new to context free art, and I just love it! Among the different features, I think there is one which could be added whithout breaking the context-free philosophy: that is the possibility of modifying the weights of a rule when we call it.
Now the weights are constant during all the drawing, while the position and color can be ajusted at each call. So a cool improvement would be the possibility of doing something like this:
In this example, the first time we call 'Shape {w 0.5 2}', the weight to call the first version of the rule is 0.5*1, and for the second it is 2*1. And if we call it again, it will become 0.5*0.5*1 and 2*2*1, and so on.
It seems also easy to implement by rembering the last weight vector along whith the matrix pultiplication.
What do you think of it?
I'm new to context free art, and I just love it! Among the different features, I think there is one which could be added whithout breaking the context-free philosophy: that is the possibility of modifying the weights of a rule when we call it.
Now the weights are constant during all the drawing, while the position and color can be ajusted at each call. So a cool improvement would be the possibility of doing something like this:
Code: Select all
rule Shape 1 {
SQUARE {}
Shape {w 0.5 2}
}
rule Shape 1 {
CIRCLE {}
Shape {w 2 0.5}
}
It seems also easy to implement by rembering the last weight vector along whith the matrix pultiplication.
What do you think of it?