update
use Math.floor instead of round for interpolation of RGB components
doc