The Julia Sets example (Tiny Code Examples) needs some critical information to be able to reproduce it. The image is as shown below.
You will find it off the help menu:
Help > Cinderella Manual > CindyScript > Tiny Code Examples > Julia Sets
or in "The Cinderella.2 Manual" ISBN 9783540349242
Chapter 16 — Tiny Code Examples, Julia Sets (page 411)
or click on the image above to see the online documentation.
The placement of the point "C" is critical. The following CindyScript provides the missing information:
// in Initialization
createpoint("A",[-1.53,-1.17]);
createpoint("B",[1.37,1.15]);
createpoint("C",[-0.21,0.69]);
In addition to what is shown:
// in Draw
g(z,c):=z^2+c;
julia(z):=(
iter=0;
while(iter<100 & |z|<2,
z=g(z,complex(C.xy));
iter=iter+1;
);
1-iter/100;
);
colorplot(julia(complex(#))
,A,B,startres->16,pxlres->1);
Then zoom in to see the image as shown above.
Best regards,
Alexander Elkins
|