Is there any way to average RGB values?
ie.
M.icon+=rgb(100,200,50)
F.icon+=rgb(200,100,100)
usr.icon+=rgb((M.icon.rgb+F.icon.rgb)/2)
So that usr's RGB would be 150, 150, 75?
ID:169448
Jun 17 2005, 8:41 pm
|
|
Jun 17 2005, 9:10 pm
|
|
No. You have to save each component of the RGB sequence separately, and do calculations on them before rgb()ing them. rgb() is pretty much an irreversible operation. (Unless, of course, you write your own converting-hex-to-decimal proc, which is entirely possible.)
|