Skip to content
This repository was archived by the owner on May 20, 2021. It is now read-only.

any-code/entity-color-tool

Repository files navigation

entity-color-tool

Build Status

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 lee@anycode.io

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.

About

Blend hex colours and generate arrays of hex codes relating to the blend steps in a gradient

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published