function inerpolateColors(col1, col2, amount) {
  let col1rgb = parseColor(col1);
  let col2rgb = parseColor(col2);
  return RGBobj2string({
    r: Math.min(255, col1rgb.r * amount + col2rgb.r * (1-amount)),
    g: Math.min(255, col1rgb.g * amount + col2rgb.g * (1-amount)),
    b: Math.min(255, col1rgb.b * amount + col2rgb.b * (1-amount)),
    a: Math.min(1, col1rgb.a * amount + col2rgb.a * (1-amount))
  });
}
/**
 * Interpolate two colours (including alpha value).
 */
Interpolate two colours (including alpha value).
Interpolate two colours ( including alpha value ) .
function inerpolateColors(col1, col2, amount) {
  let col1rgb = parseColor(col1);
  let col2rgb = parseColor(col2);
  return RGBobj2string({
    r: Math.min(255, col1rgb.r * amount + col2rgb.r * (1-amount)),
    g: Math.min(255, col1rgb.g * amount + col2rgb.g * (1-amount)),
    b: Math.min(255, col1rgb.b * amount + col2rgb.b * (1-amount)),
    a: Math.min(1, col1rgb.a * amount + col2rgb.a * (1-amount))
  });
}
function inerpolateColors ( col1 , col2 , amount ) { let col1rgb = parseColor ( col1 ) ; let col2rgb = parseColor ( col2 ) ; return RGBobj2string ( { r : Math . min ( 255 , col1rgb . r * amount + col2rgb . r * ( 1 - amount ) ) , g : Math . min ( 255 , col1rgb . g * amount + col2rgb . g * ( 1 - amount ) ) , b : Math . min ( 255 , col1rgb . b * amount + col2rgb . b * ( 1 - amount ) ) , a : Math . min ( 1 , col1rgb . a * amount + col2rgb . a * ( 1 - amount ) ) } ) ; }
Interpolate two colours (including alpha value).
Interpolate two colours ( including alpha value ) .