Skip to content

galdor/chroma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chroma

MELPA Stable MELPA

Introduction

This repository contains chroma, a small Emacs Lisp package providing various functions to manipulate colors.

While Emacs contains a builtin color package, it has several shortcomings:

  • Functions are hard to combine because colors are usually returned as lists but passed as separate arguments.
  • The representation of RGB color components as floating point values between 0.0 and 1.0 is unusual and annoying to work with.
  • There is no support for HSL color strings.
  • Results are not what you would expect. For example converting #cc241d to HSL yields a hue of 0.006666666666666636 (e.g. 0°) instead of 2°.

The chroma package aims to be easier to use.

Licensing

The chroma package is open source software distributed under the ISC license.

Contact

If you have an idea or a question, feel free to email me at nicolas@n16f.net.