Hi!
I understand I can use the hsvtorgb function to create a color from 3 separate colors. I would like to know how I can use my hsv values to modify an existing color.
-Olivier
wrangle: hsv sliders to modify a previous color?
1093 3 1- olivierth
- Member
- 1004 posts
- Joined: April 2017
- Offline
- olivierth
- Member
- 1004 posts
- Joined: April 2017
- Offline
- Konstantin Magnus
- Member
- 670 posts
- Joined: Sept. 2013
- Offline
Hi Olivier,
you could change existing colors by transforming them to HSV like this:
you could change existing colors by transforming them to HSV like this:
float hue = chf('hue'); float sat = chf('saturation'); float val = chf('value'); vector color_hsv = rgbtohsv(v@Cd); color_hsv[0] += hue; color_hsv[1] *= sat; color_hsv[2] *= val; v@Cd = hsvtorgb(color_hsv);
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
- olivierth
- Member
- 1004 posts
- Joined: April 2017
- Offline
-
- Quick Links