Random color from a defined color range

   4673   2   0
User Avatar
Member
10 posts
Joined: 7月 2006
Offline
Hi, everyone!

The question is: there's a shader, it has one main solid color that is to be mixed with another. That “another” color should be a random one, but taken from a certain color range, for example, from 128, 15, 36 - 128, 15, 56.

Is there any way to do it?

Thanks.
User Avatar
Member
1390 posts
Joined: 7月 2005
Offline
Mix these two border colors with mix Color VOP using random number as a bias value.

Remember that you have also HSV_to_RGB and RGB_to_HSV VOPs, so you can control only hue value of your colors if mixing three rgb channel it's not what you want.

hope this help.
sy.
User Avatar
Member
10 posts
Joined: 7月 2006
Offline
Thanks, SYmek! I'll give it a try.
  • Quick Links