Skip to content

lukekaalim/simple-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Color

Simple color operations and abstractions.

colorToString

(color: Color) => string

This function takes a Color object and returns the CCS string version of the color.

makeHSLColor

(hue: number, saturation: number, lightness: number, alpha?: number) => HSLAColor

This function takes some arguments and creates a HSLAColor object.

makeRGBColor

(red: number, green: number, blue: number alpha?: number) => RGBAColor

This function takes some arguments and creates a RGBAColor object.

Color

This interface describes a color object. Implementing objects are:

  • HSLAColor
  • RGBAColor

About

Simple color operations and abstractions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published