Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/galdor/chroma

Emacs Lisp color manipulation utilities.
https://github.com/galdor/chroma

colors emacs emacs-lisp

Last synced: 2 months ago
JSON representation

Emacs Lisp color manipulation utilities.

Awesome Lists containing this project

README

        

# Chroma

[![MELPA Stable](https://stable.melpa.org/packages/chroma-badge.svg)](https://stable.melpa.org/#/chroma)
[![MELPA](https://melpa.org/packages/chroma-badge.svg)](https://melpa.org/#/chroma)

## 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](https://opensource.org/licenses/ISC) license.

## Contact
If you have an idea or a question, feel free to email me at
.