[Setup] Improve color extraction
This commit is contained in:
@@ -10,7 +10,7 @@ const inquirer = require( 'inquirer' ).default;
|
||||
const build = ( wallpaper, lockpaper, theme ) => {
|
||||
console.log( '\n=> Extracting colours' );
|
||||
// Extract colour palette from chosen wallpaper using Color-Thief
|
||||
colorThief.getPalette( wallpaper ).then( palette => {
|
||||
colorThief.getPalette( wallpaper, 20 ).then( palette => {
|
||||
palette = util.removeUselessColours( palette );
|
||||
// Define view options (for rendering with mustache)
|
||||
if ( theme === 'test' ) {
|
||||
|
||||
Reference in New Issue
Block a user