|
![](/i/fill.gif) |
I'm playing around with while loops and random numbers now in povray and
thought this was a nice image for such a short amount of code. Kind of
looks like neon diatoms. - Floyd
//////////////////////////////////////////////////
#include "stars.inc"
camera {
focal_point <0, 0, 50>
aperture 0.8
blur_samples 50
}
sphere {<15,0,5,> 2000 hollow texture {Starfield2}}
#declare r1 = seed(1155);
#declare INC = 7;
#declare NrX = -20;
#declare EndNrX = 20;
#while (NrX < EndNrX)
#declare NrZ = -1;
#declare EndNrZ = 200;
#while (NrZ < EndNrZ)
#declare NrY = -20;
#declare EndNrY = 20;
#while (NrY < EndNrY)
julia_fractal
{<rand(r1)*2-1,rand(r1)*2-1,rand(r1)*2-1,rand(r1)*2-1>
quaternion sqr
max_iteration 8
precision 50
pigment { rgb <rand(r1),rand(r1),rand(r1),0> }
finish {ambient rand(r1) reflection rand(r1)}
rotate <rand(r1)*360,rand(r1)*360,rand(r1)*360>
translate <NrX+rand(r1)*INC,NrY+rand(r1)*INC,NrZ+rand(r1)*INC>
}
#declare NrY = NrY + INC;
#end
#declare NrZ = NrZ + INC;
#end
#declare NrX = NrX + INC;
#end
/////////////////////////////////////////////////////////////////////
Post a reply to this message
Attachments:
Download 'rand_julia1-2.jpg' (556 KB)
Preview of image 'rand_julia1-2.jpg'
![rand_julia1-2.jpg](/povray.binaries.images/attachment/%3Cweb.41969236283f3b845ca17c0e0%40news.povray.org%3E/rand_julia1-2.jpg?ttop=441697&toff=5900&preview=1)
|
![](/i/fill.gif) |