|
|
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
|
|