POV-Ray : Newsgroups : povray.general : color_maps : back to basics : Re: color_maps : back to basics Server Time
17 Apr 2024 20:18:36 EDT (-0400)
  Re: color_maps : back to basics  
From: Bald Eagle
Date: 17 Apr 2019 13:30:02
Message: <web.5cb76259e0a4d32d4eec112d0@news.povray.org>
"Stephen Klebs" <skl### [at] gmailcom> wrote:
> Would like to see gradient contours other than straight, linear curve. Like
> Gaussian, cove or half-round. Or custom function.

That would be cool. Probably won't happen until 4.0...  ;)

I think you could closely approximate anything you'd like by using an array and
filling in points by interpolating with the desired function.
Then use the array to define the color map.

It's a workaround, but for most things it probably gets you close enough.
Like most things, it could probably be written as a macro, to accept a
[partially filled] array containing a few defined points, the number of
subdivisions desired between 0 and 1, and the interpolation function.


Post a reply to this message

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