#color #rgb #converter #color-string #graphics


Some useful color manipulation functions

9 stable releases

1.1.3 Aug 31, 2019
1.0.4 Aug 31, 2019
1.0.3 Aug 30, 2019

#25 in #color-string

MIT license

532 lines

Latest Version Documentation

This is a library with some RGB color manipulation functions.

It includes some public functions, which can be used on their own, or used with the provided RGB struct.

  • Get a color by name
  • Make a color lighter
  • Make a color darker
  • Get a random color
  • Parse color strings
  • Get color hue degrees
  • Get color saturation %
  • Get color lightness %
  • Return string versions

Refer to the documentation for details.


~12K SLoC