Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.2K Views
|
5 Replies
|
5 Total Likes
View groups...
Share
Share this post:

[?] Get Hue[0.5, 1., 1.1] ?

Why values for saturation and brightness are not clipped to 1 if values >1 are given to function Hue? On my system (Windows 10, Mathematica 11.1.1) the function remains un-evaluated for such values, contrary to what the documentation to Hue says.

POSTED BY: Ulrich Mutze
5 Replies
POSTED BY: Szabolcs Horvát

Your 'hack' works fine as you can see from the appended file. Thanks!

Attachments:
POSTED BY: Ulrich Mutze

Many thanks, Sirs, for your helpful and prompt answers. They helped me to focus on the meaning of graphical directives. I hope that you will find your insight properly represented in the appended file. Thank you, again.

Attachments:
POSTED BY: Ulrich Mutze

Hue[h,s,b] does not evaluate. It simply formats (i.e. displays) in a certain way. It is only this formatting that fails with out-of-range value, but Hue still works as a graphics directive as A J Hardesty showed.

Try Hue[.1, .2, .3] // FullForm to see that no evaluation took place.

POSTED BY: Szabolcs Horvát

I am not having a problem with this working as expected. For example:

Graphics3D[{Hue[1/3, 3, 5, .5], Sphere[]}]

which has saturation and brightness of 3 and 5, shows the exact image as on the Documentation Page.

Do you have an example that is not working correctly?

POSTED BY: A J Hardesty
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard