fix: typo

This commit is contained in:
07akioni 2020-05-16 01:47:50 +08:00
parent 0147c626e4
commit 35fd29d977

View File

@ -38,7 +38,7 @@ export function read (color) {
* @param {[number, number, number, number]} overlay
*/
export function composite (base, overlay) {
return 'rgb(' + base.map((v, i) => floor(v * (1 - overlay[3]) + overlay[i] * overlay[3], 10)).join(', ') + ')'
return 'rgb(' + base.map((v, i) => floor(v * (1 - overlay[3]) + overlay[i] * overlay[3])).join(', ') + ')'
}
export function hash (rgb) {