#---------------------------------------------------------------------- # Introduction to linear blending # # Copyright (C) November 10, 2017 -- Dr. William T. Verts #---------------------------------------------------------------------- #---------------------------------------------------------------------- # Core blending function. P0,P1 are the numeric values to blend, # T is the "knob" to turn (all variables can be ints or floats, # but a float result is always returned). Returns P0 when T=0, # returns P1 when T=1, can interpolate between P0 and P1 when 0