Notifications
Clear all

[Closed] How do I increase Color Saturation?

lets say I have a color $.rgb = (color 235 105 60)

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

1 Reply

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.