Color: Color spaces and conversions between them

[ bsd3, graphics, library ] [ Propose Tags ]

Please see the README on GitHub at https://github.com/lehins/Color#readme


[Skip to Readme]
Versions [faq] 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.3.1, 0.1.4, 0.2.0 (info)
Change log CHANGELOG.md
Dependencies base (>=4.11 && <5), data-default-class, deepseq, vector (>=0.10) [details]
License BSD-3-Clause
Copyright 2019-2020 Alexey Kuleshevich
Author Alexey Kuleshevich
Maintainer alexey@kuleshevi.ch
Category Graphics
Home page https://github.com/lehins/Color
Source repo head: git clone https://github.com/lehins/Color
Uploaded by lehins at 2020-06-22T20:07:00Z
Distributions NixOS:0.2.0
Downloads 1357 total (25 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-06-22 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for Color-0.2.0

[back to package description]

Color

A library for dealing with Colors and pixels. It implements arbitrary color space conversion, chromatic adaptation and other color manipulations.

Status

| Language | Travis | Azure | Coveralls |Gitter.im | |:--------:|:------:|:--------:|:---------:|:--------:| | GitHub top language | Travis | Build Status | Coverage Status | Join the chat at <a href="https://gitter.im/haskell-massiv/Lobby">https://gitter.im/haskell-massiv/Lobby</a>

| Package | Hackage | Nightly | LTS | |:-------------------|:-------:|:-------:|:---:| | Color| Hackage| Nightly| Nightly|

Description

There is a clear separation between color models, color spaces and alternative representations of color spaces. All are distinct at the type level. The goal is to prevent mixups of incompatible color types as well as utilize type information for conversion between them.

Currently supported:

  • Color models:

    • Y
    • RGB
    • HSI
    • HSL
    • HSV
    • YCbCr
    • CMYK
  • Color spaces and arbitrary conversions between them:

    • Y - luminance

    • Y' - luma

    • CIE XYZ

    • CIE L*a*b*

    • RGB:

      • sRGB - both standardized and derived

      • AdobeRGB - both standardized and derived

      • ITU: Rec470, Rec601 and Rec709

      • Alternative representations:

        • HSI
        • HSL
        • HSV
        • YCbCr
        • CMYK
  • Illuminants:

    • CIE1931 - 2 degree observer
    • CIE1964 - 10 degree observer
    • Some common alternatives
  • Chromatic adaptation:

    • VonKries adaptation with transformations:

      • VonKries
      • Bradford (default)
      • Fairchild
      • CIECAM02
      • CMCCAT2000
  • Color Standards:

    • RAL

External resources