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 install
to install the required packages. The Karma config file is included in the root directory. -
Run the tests by running
gulp test
from the terminal. Alternatively you can rungulp watch
from the terminal any changes to the.js
files intest/spec
orsrc/js
will initiate the tests to run.