title: How to perform Bilinear Interpolation on RGB values?
body: <p><img src="https://i.imgur.com/4c7KS.png" alt="figure"></p>
  
  <p>Given the black pixel coordinates, I could interpolate the coordinate values of the blue pixel via the mathematical equation y = mx + c. But what about the new RGB pixel values? How do I go about getting the weighted average RGB value for the blue pixels given that the black pixel RGB values are given as such in the figure?</p>
  
  <p>Any help is much appreciated. Thanks in advance.</p>