@andrew-codes/color-functions

1.4.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @andrew-codes/color-functions

Weekly Downloads

65

Version

1.4.2

License

MIT

Last publish

Collaborators

  • andrew-codes