andrew-codes / color-functions

A variety of color manipulation functions written in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A variety of color manipulation functions written in JavaScript


Languages

Language:JavaScript 100.0%