entity-color-tool
v0.1.7
Published
Blend hex colours and generate arrays of hex codes relating to the blend steps in a gradient
Downloads
5
Maintainers
Readme
entity-color-tool
Basic color stepping utilities, now includes a universal module loader.
Getting Started
1. Installation
npm install entity-color-tool
2. Examples
var tool = require('entity-color-tool')
tool.blendHexArray(100, "#FF0000", "#FFFF00")
Blending colors "#FF0000" and "#FFFF00" over 100 increments returns the hex codes in an array
[ '#ffff00', '#fffc00', '#fff900', '#fff700', ..., '#ff0c00', '#ff0a00', '#ff0700', '#ff0500', '#FF0000']
var tool = require('entity-color-tool')
tool.hueHexArray(3, "#FF0000", 360)
Shifting hue starting at "#FF0000" by the number of steps for up to specified degrees. Increments returned as hex codes in an array
[ '#FF0000', '#00FF00', '#0000FF' ]
Copyright and license
Copyright (c) 2015, Anycode [email protected]
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.