A sparse point gradient interpolator using a inverse bilinear interpolation
Based on four (and only four) vertices, with each vertex specified with a certain color, an inverse bilinear interpolation of color is calculated.
Outside this continue the colours continue as before, but discontinuities may occur.
Figure 1: Output of a TBilinearGradientSampler with the underlying quadrilateral vertices marked with circles