#NEWLINE# def rgb_lerp( x , x0 , x1 , c0 , c1 ) : #NEWLINE# #INDENT# 'Linear interpolation of RGB color tuple c0 and c1.' #NEWLINE# return ( math . floor ( lerp ( x , x0 , x1 , float ( c0 [ 0 ] ) , float ( c1 [ 0 ] ) ) ) , math . floor ( lerp ( x , x0 , x1 , float ( c0 [ 1 ] ) , float ( c1 [ 1 ] ) ) ) , math . floor ( lerp ( x , x0 , x1 , float ( c0 [ 2 ] ) , float ( c1 [ 2 ] ) ) ) )