Change Color Node
What if you have a list of different colors and you want to change just one color property of all those colors at once? Maybe you want to see what would happen if you lowered the saturation or increased the brightness across all of them.
That's when you need my new change_color node.
Change_color takes the following inputs:
- Color. A list of colors
- Reference. A reference color with specific hue, saturation, brightness, and alpha values
- Set hue. Check if you want to change the hue on all colors to the reference hue
- Set saturation. Check if you want to change the saturation on all colors to the reference saturation
- Set brightness. Check if you want to change the brightness on all colors to the reference brightness
- Set alpha. Check if you want to change the alpha on all colors to the reference alpha
The demo (attached) shows some examples of how to use this node.
We start with a bouquet of ten colored balloons. They are arranged in a spectrum of hues which, from left to right, decrease in saturation, increase in brightness, and in decrease in alpha. We then apply the change_color node to all of them four different times.
The first time we leave the other properties in place but fix the hue to green. To do this we check the "Set hue" checkbox, uncheck the rest, and then open the reference color and adjust the hue setting. The other properties of the reference color don't matter since we are only changing the hue.
The second time we change the saturation and make everything opaque by also changing the alpha (to the full alpha value of the reference color).
The third time we only change the brightness, decreasing it slightly.
The fourth time we set all of the balloons to the same alpha value. This works like my fade node except it applies to colors, not shapes.
That's it!
This node is one of several additions and improvements I plan to make to my color nodes before releasing the next rev of my Cartan Node Library. Comments welcome as always.
-
Change_Color_Screenshot.png 559 KB
- change_color_node.ndbx.zip 4.89 KB
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac