Nifty Procrastination Machine

    entity-color-tool

    0.1.7 • Public • Published

    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.

    Install

    npm i entity-color-tool

    DownloadsWeekly Downloads

    8

    Version

    0.1.7

    License

    ISC

    Last publish

    Collaborators

    • qrb