POV-Ray : Newsgroups : povray.general : smooth gradient color_map : Re: smooth gradient color_map Server Time
2 May 2024 05:43:01 EDT (-0400)
  Re: smooth gradient color_map  
From: clipka
Date: 22 Jul 2017 03:39:38
Message: <5973013a$1@news.povray.org>
Am 22.07.2017 um 06:26 schrieb omniverse:

>   #for (It,BeginColorCount,EndColorCount,StepsCount)
>   [
>   It/EndColorCount, (It+StepsCount)/EndColorCount
>   color rgb <(EndColorCount-It)/EndColorCount,0,It/EndColorCount>
>   color rgb <(EndColorCount-It)/EndColorCount,0,It/EndColorCount>
>   ]
>   #end

That syntax is obsolete, and should be avoided. Instead, use the
following for exactly the same effect:

  #for (It,BeginColorCount,EndColorCount,StepsCount)
  [
    It/EndColorCount,
    color rgb <(EndColorCount-It)/EndColorCount,0,It/EndColorCount>
  ]
  [
    (It+StepsCount)/EndColorCount,
    color rgb <(EndColorCount-It)/EndColorCount,0,It/EndColorCount>
  ]
  #end


Post a reply to this message

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