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

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

OCaml

Innovation. Community. Security.