|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Please see the "Stepped function offset (attempt #2)" thread in p.t.s-f.
Thanks!
Michael
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
http://news.povray.org/*/attachment/%3Cweb.5e11aa71340f43599da690110%40news.povray.org%3E/hsvhslshift.jpg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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?
Mike
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Melody" <nomail@nomail> wrote:
> 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?
Nope - he wants to model the color space just like as shown. He does a fair
amount of Wikipedia work - just look at Wikipedia or search the forum.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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?
>
>
> Mike
Sven, I want to type Seven, gave up a list of named POV, "farge" and Lego
colors.
Here is the JS setup for color grabbing; in late-enough-version browser to use
clipboard. use it to make any color scheme you want, add HSV HSL functions -
make a better world.
http://news.povray.org/povray.binaries.utilities/message/%3Cweb.5e2540e3f66b17949da690110%40news.povray.org%3E/#%3Cweb.
5e2540e3f66b17949da690110%40news.povray.org%3E
http://news.povray.org/povray.binaries.utilities/attachment/%3Cweb.5e2540e3f66b17949da690110%40news.povray.org%3E/povco
lorselect.zip
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
just guessing, just woke up, but have you tried moving your nudge _inside_ the
floor function?
#declare Start = 6+(1/12);
#declare CSolid_HSLSphere_Lightness_stepped = function { floor(Start *
f_ph(x,y,z)/pi)/6};
When it gets complicated, break the calculations up into parts, and graph them
all.
I always use spreadsheets to help me out with things like this.
Another thing to try is adding or subtracting pi/12 from your f_ph funtion to
actually rotate the results
Post a reply to this message
|
|
| |
| |
|
|
From: Mike Horvath
Subject: Re: Stepped function offset (attempt #2)
Date: 27 Jan 2020 03:32:23
Message: <5e2ea017@news.povray.org>
|
|
|
| |
| |
|
|
On 1/25/2020 8:19 AM, Bald Eagle wrote:
> Another thing to try is adding or subtracting pi/12 from your f_ph funtion to
> actually rotate the results
Thank you! This was the correct solution.
For instance:
#declare CSolid_Div = 6;
#declare CSolid_HSLSphere_Lightness_stepped = function {
floor(CSolid_Div * (f_ph(x,y,z)+pi/2/CSolid_Div)/pi)/CSolid_Div};
#declare CSolid_HSLSphere_Lightness = pigment
{
function {CSolid_HSLSphere_Lightness_stepped(x,y,z)}
pigment_map
{
[0/2 color srgb 1]
[1/2 CSolid_HSLSphere_Saturation]
[2/2 color srgb 0]
}
}
#declare CSolid_HSLSphere_Pigment = pigment {CSolid_HSLSphere_Lightness}
Post a reply to this message
Attachments:
Download 'color_mind_sphere_render_test.png' (73 KB)
Preview of image 'color_mind_sphere_render_test.png'
|
|
| |
| |
|
|
|
|
| |