wip
This commit is contained in:
parent
0c8ca1380d
commit
71c19887c7
1 changed files with 2 additions and 0 deletions
|
@ -665,9 +665,11 @@ function decimate(input, palette, n) {
|
||||||
//let rgb = bucket[bucket.length - 1];
|
//let rgb = bucket[bucket.length - 1];
|
||||||
|
|
||||||
// Take the luma-brightest color in the bucket
|
// Take the luma-brightest color in the bucket
|
||||||
|
// wrong? bad
|
||||||
//let rgb = bucket.slice().sort((a, b) => b.luma() - a.luma())[bucket.length - 1];
|
//let rgb = bucket.slice().sort((a, b) => b.luma() - a.luma())[bucket.length - 1];
|
||||||
|
|
||||||
// Take the median color in the bucket
|
// Take the median color in the bucket
|
||||||
|
// bad
|
||||||
//let rgb = bucket[bucket.length >> 1];
|
//let rgb = bucket[bucket.length >> 1];
|
||||||
|
|
||||||
// Combine the brightest of each channel
|
// Combine the brightest of each channel
|
||||||
|
|
Loading…
Reference in a new issue