lightenHex function

String lightenHex (
  1. num amount,
  2. String hex
)

returns a lightened hex string. amount is a value in the range [0, 1]

Implementation

String lightenHex(num amount, String hex) {
  var rgb = hex2rgb(hex);
  var ligthen = lightenRgb(amount, rgb);

  return rgb2hex(ligthen);
}