POV-Ray : Newsgroups : povray.text.scene-files : Pursuit curve (was Rainy Sunday afternoon) : Re: Pursuit curve (was Rainy Sunday afternoon) Server Time
30 May 2024 11:02:59 EDT (-0400)
  Re: Pursuit curve (was Rainy Sunday afternoon)  
From: William F Pokorny
Date: 1 Nov 2023 07:08:08
Message: <65423198$1@news.povray.org>
On 10/31/23 06:07, kurtz le pirate wrote:
> The code is here.

Thank you!

FWIW. Because my yuqk fork playpen doesn't ship with a color.inc file, I 
first tried using the macro you included, hsb2rgb(), over CHSV2RGB(). I 
had to change the bottom part some for it to run.

...
          #elseif ( _Hue>=300 & _Hue<=360) // Was ( ... _Hue<360) ?
                 #local RED = C;
                 #local GREEN = 0;
                 #local BLUE = X; // 'x' is a vector ?
         #else
                 #debug concat("_Hue is ",str(_Hue,9,3),"\n")
                 #error "_Hue out of range in convertion ! "
         #end

         <(RED+m), (GREEN+m), (BLUE+m), 0, _Transmit>
#end

I ended up grabbing the older color.inc macros and using those because 
the colors looked better - like what you had posted - than did the 
hsb2rgb() results.

I'm not going to dig into why the difference at the moment as I have 
many other fires burning low. I need to return to those before I forget 
too much! :-)

Bill P.


Post a reply to this message

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