POV-Ray : Newsgroups : povray.binaries.images : gradient variations : Re: gradient variations Server Time
30 Jul 2024 08:26:51 EDT (-0400)
  Re: gradient variations  
From: Le Forgeron
Date: 18 May 2012 17:05:23
Message: <4fb6b993@news.povray.org>
Le 18/05/2012 20:30, Le_Forgeron nous fit lire :
> Le 18/05/2012 19:06, clipka nous fit lire :
>> Am 18.05.2012 18:19, schrieb Le_Forgeron:
>>> The real non-slope is opposite hue. (yellow&  blue... magenta&  green..)
>>
>> When interpolating hues, those would become rainbow-style rather than
>> going via neutral grey.
> 
> My personal approach on that: hue is a circle, choose whichever section
> is smaller for interpolation; if both are equal, just go through the center.

Here some illustration of povray rgb interpolation, hsv, hsl and using
linear cartesian interpolation of (h,s) taken as polar coordinate,

The important point in interpolation is at least that (red,red) stay red
all the way.


Post a reply to this message


Attachments:
Download 'pol9.png' (105 KB) Download 'pol6.png' (120 KB) Download 'pol3.png' (123 KB) Download 'pol.png' (146 KB)

Preview of image 'pol9.png'
pol9.png

Preview of image 'pol6.png'
pol6.png

Preview of image 'pol3.png'
pol3.png

Preview of image 'pol.png'
pol.png


 

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