A simple JS library to produce various color palettes
Production ready code can be found in dist/colorPalette.js
<script src="./dist/colorPalette.js"></script><script>
colorPalette.getGradientColors('#ffe400');
colorPalette.getTriadicColors('#ffe400');
colorPalette.getComplimentaryColors('#ffe400');
colorPalette.getAnalogousColors('#ffe400');
</script> -
Make sure you have npm installed. It's installed with node, which can be found at node.org.
-
Once you have npm installed navigate to the color palette root directory where the package.json file is located. From the terminal, run the command
npm installto install the required packages. The Karma config file is included in the root directory. -
Run the tests by running
gulp testfrom the terminal. Alternatively you can rungulp watchfrom the terminal any changes to the.jsfiles intest/specorsrc/jswill initiate the tests to run.