package colors
A pure OCaml library for manipulating colors across color spaces
Install
Dune Dependency
Authors
Maintainers
Sources
colors-0.0.1.tbz
sha256=7d8d63f4538356789fc2c23caa42a6d104a6b2c816a9815727bcbca3bfca9846
sha512=fd6ffb5c3e4a35b5d3e2e1e2eec05b36725c355a6e5e6b6c9384dcd1a79a28f98592edb36136582e2735bb78f5905dadfabef01da92f27a1b642d9d0afe289e7
README.md.html
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))
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>