PDA

View Full Version : How do I increase Color Saturation?


Martin Andersen
09-15-2005, 12:02 PM
lets say I have a color $.rgb = (color 235 105 60)

How do I increase or decrease the color saturation with maxscript ?

j-man
09-15-2005, 01:04 PM
Martin,

Not only can you access the RGB channels of colours using .r .g .b but you can also access the hue, saturation and value using .h .s .v

for example:

c=(color 235 105 60)
c.h
c.s
c.v


there is one problem though, some colours don't have a hue, like gray for example

c=gray
c.h -- this will return 0.0
c.h=255
c.h -- this will still return 0.0!


Cheers,

Josh.

CGTalk Moderation
09-15-2005, 01:04 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.