Skip to content

andrew-codes/color-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published