Skip to content

A vanilla web app which does palette extraction using K-means clustering, with NodeJS fallback.

License

Notifications You must be signed in to change notification settings

pgchamberlin/swatchmaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swatchmaker

Palette extraction using K-means clustering.

Installation

It should be very straightforward to get Swatchmaker working locally following these steps.

  • Clone this repo
  • Install dependencies
  • Do a local build
  • Launch the server

Here are the commands:

git clone git@github.com:pgchamberlin/swatchmaker.git
cd swatchmaker
npm install
./node_modules/gulp/bin/gulp.js
node index.js

You should see the message Swatchmaker listening on port 3000!, and the app should be working a http://localhost:3000.

Dev mode

By default the app will use the /dist assets, which are minified and uglified. This makes it hard to develop, so I've made it possible to put the app into dev mode using the query string ?dev. This uses the raw assets instead.

http://localhost:3000/?dev

Different ports

To launch Swatchmaker on a port other than 3000 pass the port as an environment variable:

PORT=3210 node index.js

More information

Take a look in the /docs directory for more information.

About

A vanilla web app which does palette extraction using K-means clustering, with NodeJS fallback.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published