|
![](/i/fill.gif) |
In article <3edae66e@news.povray.org>, "Slime" <slm### [at] slimeland com>
wrote:
> function {
> select(y-100,
> // if y < 100
> select(y-(-100),
> 0 // if y < -100
> (y-(-100))/200 // else (y >= -100)
> ),
> 1 // else (y >= 100)
> )
> }
I think select() is a bit overkill for this. My suggestions were more
general, but if you want something that fits this precise situation:
function {max(-100, min(100, y))/200 + 0.5}
Plus, I think you're missing a comma in the inner select().
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |