package color

  1. Overview
  2. Docs
Converts between different color formats

Install

Dune Dependency

Authors

Maintainers

Sources

color-0.1.0.tbz
md5=4ac5149866995836893a7dd26224ed1a

README.md.html

color: converts between different color formats

Library that converts between different color formats. Right now it deals with HSL, HSLA, RGB and RGBA formats.

The goal for this library is to provide easy handling of colors on the web, when working with js_of_ocaml.

Examples

# Color.to_hexstring (Color.of_rgb 12 121 229);;
- : "#0c79e5"

Credit

Based on purescript-colors