Linear color interpolation?

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-06-10T17:47:56Z Indexed on 2010/06/10 17:52 UTC
Read the original article Hit count: 133

Filed under:
|
|

If I have a straight line that mesures from 0 to 1, then I have colorA(255,0,0) at 0 on the line, then at 0.3 I have colorB(20,160,0) then at 1 on the line I have colorC(0,0,0). How could I find the color at 0.7?

Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about c