POV-Ray : Newsgroups : povray.advanced-users : Correct function/pigment syntax? : Re: Correct function/pigment syntax? Server Time
25 Jul 2021 15:51:08 EDT (-0400)
  Re: Correct function/pigment syntax?  
From: Mike Horvath
Date: 13 May 2021 18:31:04
Message: <609da8a8$1@news.povray.org>
See my post in p.t.s-f





On 5/13/2021 6:19 PM, Mike Horvath wrote:
> I am trying to combine pigments and functions in different ways. Here is 
> an example:
> 
> 
> #declare pigment_1 = pigment
> {
>      slope {+y}
>      color_map
>      {
>          [0 rgb 0]
>          [1 rgb 1]
>      }
> }
> #declare function_1 = function {pigment {pigment_1}}
> #declare pigment_2 = pigment {function {function_1(x,y,z)}
> 
> 
> But I am getting a parse error on pigment_2. What is the correct syntax 
> to get this example to work?
> 
> 
> Mike


Post a reply to this message

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