POV-Ray : Newsgroups : povray.general : Stepped function offset (attempt #2) : Re: Stepped function offset (attempt #2) Server Time
8 May 2024 19:25:38 EDT (-0400)
  Re: Stepped function offset (attempt #2)  
From: Mike Horvath
Date: 24 Jan 2020 18:08:13
Message: <5e2b78dd$1@news.povray.org>
I am using functions. They are already stepped. I just need to nudge 
them outward by 1/2 step, which I can't figure how to do.

Here are examples:

#declare CSolid_HSLSphere_Saturation_stepped = function { floor(6 * 
f_r(x,y,z))/6};
#declare CSolid_HSLSphere_Lightness_stepped = function { floor(12 * 
f_ph(x,y,z)/pi)/12};


I guessed and tried this with no success:

#declare CSolid_HSLSphere_Saturation_stepped = function { floor(6 * 
f_r(x,y,z))/6 + 1/12};
#declare CSolid_HSLSphere_Lightness_stepped = function { floor(12 * 
f_ph(x,y,z)/pi)/12 + 1/24};



Michael



On 1/21/2020 5:59 PM, Melody wrote:
> Mike Horvath <mik### [at] gmailcom> wrote:
>> On 1/21/2020 12:39 AM, Melody wrote:
>>>
http://news.povray.org/*/attachment/%3Cweb.5e11aa71340f43599da690110%40news.povray.org%3E/hsvhslshift.jpg
>>>
>> I don't know what that is for. Can you link to the message/thread too?
> 
> That url minus the image *IS the thread.
>
http://news.povray.org/*/attachment/%3Cweb.5e11aa71340f43599da690110%40news.povray.org%3E/
> 
> It's a hue palette, click a color, and buffer text to paste into POV project.
> 
> I assume you want hue colors. What is your end goal here?.
> 
> Your interest suggests I am on the right track.
> 
> colors.inc has the hsv/hsl functions.
> Did you want usage example?
> 
> 
> 
> 
> 
> 
> 
> 
> 
>


Post a reply to this message

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