From 35fd29d9779decaf1a01fd50ff940e77e2f42d63 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Sat, 16 May 2020 01:47:50 +0800 Subject: [PATCH] fix: typo --- src/_utils/color/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_utils/color/index.js b/src/_utils/color/index.js index 50b67709b..d0d287664 100644 --- a/src/_utils/color/index.js +++ b/src/_utils/color/index.js @@ -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) {