packages feed

prizm-0.3.1.2: prizm.cabal

name:                prizm
version:             0.3.1.2
synopsis:            Compute with colors and differenct color spaces
homepage:            https://github.com/ixmatus/prizm
license:             BSD3
license-file:        LICENSE
author:              Parnell Springmeyer
maintainer:          parnell@ixmat.us
copyright:           (c) 2013 Parnell Springmeyer
category:            Graphics
build-type:          Simple
stability:           stable
bug-reports:         https://github.com/ixmatus/prizm/issues
package-url:         http://hackage.haskell.org/package/prizm
tested-with:         GHC == 7.6.3
cabal-version:       >=1.14.0


description:

  <<https://travis-ci.org/ixmatus/prizm.svg?branch=master>>
  .
  `prizm` is a Haskell library for computing with colors. Specifically
  providing functions for transforming between different color spaces,
  interpolating colors and adjusting the tint, shade, hue, or
  lightness or a color.
  .
  My inspiration for writing this was Sass and Bourbon, both implement
  interesting functions for computing with colors for use in
  stylesheets and I wanted the same thing for use in <http://fvisser.nl/clay/ Clay>.
  .
  /Colour Module/
  .
  There is some overlap with the Haskell Colour Module that already
  exists; however, this library is filling a couple of needs the
  other doesn't satisfy. Primarily transformations and color
  mutations in the CIE L*Ch space.
  .
  /Supported Algorithms & Functions/
  .
  All of these functions operate on color within the CIE L\*Ch
  representation. The percentage values may range between -100
  and 100.
  .
  * sRGB <-> CIE XYZ
  .
  * CIE XYZ <-> CIE L\*ab
  .
  * CIE L\*ab <-> CIE L\*Ch
  .
  * Color interpolation
  .
  * Tinting / Darkening
  .
  * Lightness
  .
  * Hue
  .
  * Chroma/Saturation
  .
  /Formulas, Resources, and Links/
  .
  * <http://www.brucelindbloom.com/index.html?Info.html General Color Formulas, Data, and Algorithms>
  .
  * <http://rip94550.wordpress.com/2011/07/04/color-cielab-and-tristimulus-xyz/ CIE Conversion Mathematics>
  .
  * <http://www.easyrgb.com/index.php?X=MATH&H=01 Conversion Algorithm Sources>
  .
  * <https://github.com/mikeemoo/ColorJizz-PHP/blob/master/src/MischiefCollective/ColorJizz/ColorJizz.php Good list of useful color manipulation formulas>

extra-source-files:
    LICENSE
    README.org
    CHANGES

source-repository head
  type:     git
  location: https://github.com/ixmatus/prizm

library
  hs-source-dirs: src
  default-language: Haskell2010
  exposed-modules:
    Data.Prizm.Types
    Data.Prizm.Color
    Data.Prizm.Color.Transform
    Data.Prizm.Color.SRGB
    Data.Prizm.Color.CIE
    Data.Prizm.Color.CIE.XYZ
    Data.Prizm.Color.CIE.LAB
    Data.Prizm.Color.CIE.LCH
    Data.Prizm.Color.Matrices.RGB
    Data.Prizm.Color.Matrices.XYZ
  
  ghc-options: -Wall

  build-depends: base >= 4.5 && < 5,
                 text >= 0.11.2.3

test-suite tests
  type:           exitcode-stdio-1.0
  hs-source-dirs: tests
  main-is:        QC.hs
  default-language: Haskell2010
  other-modules:
    QC.SRGB
    QC.CIE

  ghc-options:
    -Wall -threaded -rtsopts

  build-depends:
    prizm,
    base >= 4,
    QuickCheck >= 2.5,
    test-framework >= 0.8,
    test-framework-quickcheck2 >= 0.3.0,
    test-framework-hunit >= 0.3.0