POV-Ray : Newsgroups : povray.binaries.images : Shortest code ever for mandel landscape made of spheres : Re: Shortest code ever for mandel landscape made of spheres => Not any more (25KB) Server Time
19 Aug 2024 04:24:53 EDT (-0400)
  Re: Shortest code ever for mandel landscape made of spheres => Not any more (25KB)  
From: ingo
Date: 23 Jan 2001 08:27:05
Message: <Xns9032931CE5942seed7@povray.org>
in <3A69AA7D.22E3C533@gmx.de> Christoph Hormann wrote:

>I also managed to eliminate one while loop from Warp's version, but that
>makes it slightly larger, maybe someone can also reduce this:
>
>camera{location 2look_at 0}light_source{9,1}$R=0;#while
>(R<99)sphere{<int(R)/99,eval_pattern(mandel 9,
><(R-int(R)-.5)*3,int(R)/40-1>),R-int(R)>.01pigment{bozo}}$R=R+.02;#end 
>
>
If it's reduction in character count what you're looking for:

camera{location 2look_at 0}light_source{9,1}$R=0;#while
(R<99)%S=int(R);sphere{<S/99,eval_pattern(mandel 9
<(R-S-.5)*3,S/40-1>)R-S>.01pigment{bozo}}$R=R+.02;#end

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.