mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
fix: typo
This commit is contained in:
parent
0147c626e4
commit
35fd29d977
@ -38,7 +38,7 @@ export function read (color) {
|
|||||||
* @param {[number, number, number, number]} overlay
|
* @param {[number, number, number, number]} overlay
|
||||||
*/
|
*/
|
||||||
export function composite (base, 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) {
|
export function hash (rgb) {
|
||||||
|
Loading…
Reference in New Issue
Block a user