POV-Ray : Newsgroups : povray.advanced-users : Problems with macro (3.6) : Re: Problems with macro (3.6) Server Time
29 Jun 2024 01:56:12 EDT (-0400)
  Re: Problems with macro (3.6)  
From: Reactor
Date: 9 Jun 2010 18:55:01
Message: <web.4c101ab385f50d43e69105fc0@news.povray.org>
SharkD <pos### [at] gmailcom> wrote:
> I've written the following macro to tweak some color values:
>
> #macro gamma_color_adjust(in_color, in_transmit)
>  #local out_gamma = 2.2;
>  #if (in_transmit)
>   VPow(in_color,out_gamma) + <0,0,0,in_transmit,>
>  #else
>   VPow(in_color,out_gamma)
>  #end
> #end
>
> The macro takes a three component color vector as the first parameter,
> and a single transmit parameter as the second parameter. I keep getting
> the error, "Expected 6 parameters but only 5 found." What did I do wrong?
>
>
> --
> http://isometricland.com


I didn't try it, but I noticed that there is a trailing comma after in_transmit,
which could make povray think that there should be another value.  If this is a
direct copy&paste, double check that comma.

    HTH
-Reactor


Post a reply to this message

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