POV-Ray : Newsgroups : povray.general : Status of Moray? : Re: New SDL for POVRay Server Time
13 Jul 2025 11:38:52 EDT (-0400)
  Re: New SDL for POVRay  
From: Ger
Date: 19 Sep 2007 13:06:28
Message: <46f15714@news.povray.org>
Nicolas George wrote:

> Ger  wrote in message <46f1440d@news.povray.org>:
>> This looks perfectly doable.
> 
> Thanks.
> 
>> The contradiction between POV SDL and ARPL (A Real Programming Language)
>> is the possibility to do something like this
>> 
>> object { Thingy scale 2 #if(Big) * 3 #end }
> 
> Not necessarily:
> 
> object [ $thingy, scale => $big ? 2 : 6 ]

That's basically the same as

object { Thingy
         #if (Big)
                scale 6
        #else
                scale 2
        #end
        }
but that's not what I meant. In POV SDL it is possible to put an "#if #end"
construct just about any place to include/exclude bits of code.
Maybe this is a better example

color_map{
        [0, Red]
        #if (ManyColors)
        [0.5, White]
        #end
        [1, Blue]
        }

2 remarks
Please no special characters ($#) before whatever, and
"$big ? 2 : 6" is not exactly readable to a newbe
-- 
Ger


Post a reply to this message

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