PDA

View Full Version : Average RGB value


Gpin
11-10-2002, 09:41 PM
I would like, using expressions, to return one value from an RGB value. I guess i need to average the three values.
It's for a particle system, so I simply need my colors to control the velocity of my particles, but right now my color ramp is obviously returning 3 values. I need the average !!

Thanks.

Gpin
11-10-2002, 10:04 PM
As far as I understand, RGB is a vector value.
So, I simply need the syntax to change a vector value to a float value.

CGTalk Moderation
01-13-2006, 09:00 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.