One final thought and then I'll shut up.

If you want to make your scribble smoother, you can make the randomness 'second-order'. That is, instead of randomising the change to the error factor, you could randomise the *rate* of change of the error factor. So you now keep track of two values, errorFactor and wobbliness. At each step, you add wobbliness to errorFactor, then change wobbliness by some random amount between -wobblewobbliness and wobblewobbliness :). Another advantage of this is that it gives you greater control of what happens at the extremes: if errorFactor gets greater than a certain amount you can clamp wobbliness in the right direction for a few steps until the factor gets within reasonable bounds again.

Danny
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to