|
|
On Tue, 02 Nov 1999 16:40:15 -0800, Ken <tyl### [at] pacbellnet> wrote:
>Even luckier since I have two versions available:
>
> //Warp's shortest mandelbrot shape code
> camera{location<1,2,2>look_at 0}light_source{z*9+y*9,1}#local Z=-1;#while(Z<1)
> #local X=-2;#while(X<1)#local r=X;#local i=Z;#local n=0;#while(n<1&r*r+i*i<4)
> #local a=2*r*i+Z;#local r=r*r-i*i+X;#local i=a;#local n=n+.05;#end sphere{
> <X,n/2,Z>.02 pigment{rgb<1,n,0>}}#local X=X+.02;#end#local Z=Z+.02;#end
>
>
> //Mark Wagner's slightly longer code
> camera{location<yes,yes+on,yes+true> look_at -u }light_source{9-9*x
> yes}#declare Z=-true;#while(Z<on)#declare X=-2;#while(X<true)#declare
> r=X;#local i=Z;#version clock;#while((version<true)&(((r*r)+(i*i))<4))#local
> a=((2*r*i)+Z);#local r=((r*r)-(i*i)+X);#local i=a;#version
> (version+.05);#end sphere{<(X),(.5*version),(Z)>.02 pigment{ color
> ((z*version)+v+(x*(1-version)))}}#declare X=(X+.02);#end#local
> Z=(Z+.02);#end
These are 2D M-Sets, Ken. There already is such a pattern in POV
are three parts of Z, namely R, I and J.
Peter Popov
ICQ: 15002700
Post a reply to this message
|
|