POV-Ray : Newsgroups : povray.advanced-users : Correct function/pigment syntax? : Re: Correct function/pigment syntax? Server Time
19 Apr 2024 14:22:28 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-2023 Persistence of Vision Raytracer Pty. Ltd.