package color

  1. Overview
  2. Docs
Converts between different color formats

Install

Dune Dependency

Authors

Maintainers

Sources

color-0.1.0.tbz
sha256=5358a9e6ca3a2a25fff93482df9313ce75db8db53346919b4da11dc16772e394
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

OCaml

Innovation. Community. Security.