A variety of color manipulation functions written in JavaScript
Clone or download
Latest commit eefe375 Dec 6, 2016

readme.md

Build Status

@andrew-codes/color-functions

A variety of color manipulation functions written in JavaScript.

Install

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