|
|
It's for the eval_pigment stuff I've been using. I needed to convert a color
vector into a float value so I could use it for elevation. The best way I
could think of doing this would be averaging the components of the color
vector. I'm now using a macro instead of vlength, and it works great.
Warp wrote:
> What are you trying to do?
> The average of the components of a vector doesn't sound like anything
> rational. The length of a vector sound much more useful.
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|