POV-Ray : Newsgroups : povray.text.scene-files : Stepped function offset (attempt #2) : Re: Stepped function offset (attempt #2) Server Time
23 Sep 2021 03:02:09 EDT (-0400)
  Re: Stepped function offset (attempt #2)  
From: Mike Horvath
Date: 20 Jan 2020 01:34:14
Message: <5e2549e6$1@news.povray.org>
Okay, in the attached screenshot there is a horizontal axis that 
represents the saturation axis of the HSL color model. The left box is 
pure gray. The right box is pure red. The other boxes are 1/6, 2/6, 3/6, 
4/6, and 5/6 saturation. The left-most and right-most boxes are 1/2 the 
width of the other boxes.

Does this make sense?




On 1/20/2020 12:40 AM, Mike Horvath wrote:
> Kind of hate newsgroups sometimes, meh.
> 
> Anyway, by offset scale I mean:
> 
> |-0-|---1--|---2--|---3--|---4--|---5--|-6-|
> 
> Notice how the beginning and end sections are 1/2 length.
> 
> Better yet I should draw a diagram explaining the above. Which I will 
> start working on now.
> 
> 
> 
> 
> On 1/20/2020 12:20 AM, Mike Horvath wrote:
>> I have created the attached scene.
>>
>> It works well, except the pigment function needs to be offset at the 
>> beginning and end of the gradients "CSolid_HSLSphere_Saturation" and 
>> "CSolid_HSLSphere_Lightness". The end result is supposed to look like 
>> this:
>>
>> https://commons.wikimedia.org/wiki/File:HSLSphere.svg
>>
>> Can someone clue me in on how to do this? Thanks.
>>
>>
>> Michael
>


Post a reply to this message


Attachments:
Download 'saturation_gradient.png' (190 KB)

Preview of image 'saturation_gradient.png'
saturation_gradient.png


 

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