don't forget your parenthesis!
p1# = (distances.y# + distances.z#) / total#
etc.
-----Original Message-----
From: Peter Dempsey [mailto:theviron@...]
Sent: Thursday, May 03, 2001 2:52 PM
To: futurebasic@...
Subject: Re: [FB] Challenge (of sorts)
Ahhhh, so I partially misinterpreted it, but it might still work? ;)
I probably should have given up when (I think) I realized your true goal.
Nonetheless, I was convinced that if my current understanding of your
request was correct, then a simple modification could make it work. I need
to learn this stuff sometime... Besides, 8 bit gworlds won me over ;-)
So here's what I understand: you have three rgb colors at the three
vertices, and you need to find what % of each vertex a certain point would
be. .5,.5,.5 would be 50% of each vertex... 1,0,0 would be 100% of the
first vertex, and so on?
If thats the case, then I'll take the risk to say voila:
'Now Find Percentages...?
total# = distances.x# + distances.y# + distances.z#
p1# = distances.y# + distances.z# / total#
p2# = distances.x# + distances.z# / total#
p3# = distances.x# + distances.y# / total#
-----snip