package color

  1. Overview
  2. Docs
Converts between different color formats

Install

Dune Dependency

Authors

Maintainers

Sources

color-0.1.0.tbz
md5=4ac5149866995836893a7dd26224ed1a

Description

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.

Published: 08 Jul 2018

README

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

Dependencies (2)

  1. jbuilder >= "1.0+beta14"
  2. ocaml >= "4.06.0"

Dev Dependencies (1)

  1. alcotest with-test

Used by

None

Conflicts

None