/Example-RGB

RGB color handling library example

Primary LanguageHaskellMIT LicenseMIT

Example Library: RGB

Ultra-simple library for RGB color representation in Haskell, inspired by a special Codewars kata about a simple greyscale conversion.

Build and test Publish API docs Haddock documentation Codewars profile

Details

This tiny library features

  • Flexible types for colors and "images".
  • The color type has an Applicative Functor instance (Read more) that allows for component-wise modifications via RGB functions
  • A continuous test suite with unit and property tests, covering the basics and codewars tests for greyscale images.
  • Automatic API docs generation via GitHub actions, hosted on GitHub pages.

Contributors

Contributor Covenant 2.0

Author and License

Copyright (c) 2022 Mirko Westermeier

Released under the MIT license. See LICENSE for details.