diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-06-29 18:25:25 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-06-29 18:26:02 +0300 |
| commit | da0c0972f545bf1241644416957438ba254d58ff (patch) | |
| tree | 949526ab12cc1aa71278f061443b82858a16d5c3 /server/methods.js | |
| parent | 8256cec8e339f3341571049f5a05e41ab85fad1b (diff) | |
Remove rgbquant
Diffstat (limited to 'server/methods.js')
| -rw-r--r-- | server/methods.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/server/methods.js b/server/methods.js index 967e28f..d4cbaec 100644 --- a/server/methods.js +++ b/server/methods.js @@ -8,17 +8,5 @@ Meteor.methods({ 'max_timestamp': Math.round(Date.UTC(year, month) / 1000), } }); - }, - reduceColors: function (cols) { - // console.log('input', cols.slice(0,8)); - var quant = new RgbQuant({ - colors: 2, - minHueCols: 2 - }); - quant.sample(cols); - var palette = quant.palette(true); - console.log('palette', palette); - var newcolors = quant.reduce(cols); - return newcolors; } }); |
