Fractal Plant
there is 'var' missing in line 54 in function fractal():
for (var i = 0; i < branches; i++)
Excellent. Thanks a lot for your help.
Regards
Tim
Great !!!
Thank you for the lesson
I am absolutely new in JavaScript so i have primitive questions:
Is it possible to create inlets for dynamic change of parameters such as
branches, depth, minAngle etc
I guess it should be smth like:
function branches(v)
{
branches = v;
}
and then massage box to the JSobject ( branches $1 ) ......but this doesn`t work
And another question if it possible to "grow" this tree from line to line?
Ps. i know one good answer: "go and learn JS!" )) ..... but anyway
yes, i think its possible. try
inlets = 0;
if (jsarguments.length >= 2)
inlets = jsarguments[1];
if (!inlets)
inlets = 1; // default value
function branches(v){
inlets = v;
branches = v;
paint();
}
Thnx.
I`ll try to understand it...