UNPKG

@andrew-codes/color-functions

Version:

Collection of functions to manipulate colors in JavaScript

28 lines (24 loc) 592 B
[![Build Status](https://travis-ci.org/andrew-codes/color-functions.svg?branch=master)](https://travis-ci.org/andrew-codes/color-functions) # @andrew-codes/color-functions A variety of color manipulation functions written in JavaScript. ## Install ```bash npm install @andrew-codes/color-functions ``` ## Exposed Functions - clamp : numeric - desaturate - saturate - lighten - darken - tint - shade - setOpacity - getContrastRatio - getLuminance - toHex : string - toHexString: string - toHsla : hsla color object - toHslaString: string - toRgba : rbga color object - toRgbaString: string