package colors
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=7d8d63f4538356789fc2c23caa42a6d104a6b2c816a9815727bcbca3bfca9846
sha512=fd6ffb5c3e4a35b5d3e2e1e2eec05b36725c355a6e5e6b6c9384dcd1a79a28f98592edb36136582e2735bb78f5905dadfabef01da92f27a1b642d9d0afe289e7
Description
Tags
color color spaces color transformations color blending luv xyz rgb linear rgb srgb uv reference colorsAdded to opam-repository:
README
Colors
A pure OCaml library for manipulating colors in different color spaces.
It supports creating colors in several formats:
RGB | Linear RGB | XYZ | LUV | |
|---|---|---|---|---|
RGB | create | translate | - | - |
LinearRGB | translate | create | translate | - |
XYZ | - | translate | create | translate |
LUV | - | - | translate | create |
And blending:
open Colors
let black = `rgb (0,0,0)
let white = `rgb (255,255,255)
let gray = RGB.blend black white ~mix:0.5
let () = assert (gray = `rgb (107,107,107))
Used by (1)
-
spices
>= "0.0.2"
Conflicts
None
Build status
Results of building colors with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.0.1 (this version) | n/a | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure