package color-brewery
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Offer colors palettes and functions to brew colors
Install
dune-project
Dependency
github.com
Readme
Changelog
LGPL-3.0-only WITH OCaml-LGPL-linking-exception License
Edit opam file
Versions (2)
Authors
Maintainers
Sources
color-brewery-0.1.tbz
sha256=746215745d2faa5fb150fdb96e3b80d882040b828085db25b8f902577d5c4849
sha512=c833e2398b4870a5ab9a51da8bc0c5e420ce8ab068174a9606ed66afb48e65304c3f39a533ab4ee4f16647e1df60e1c677cf432eb37d0d088576e9ef5eb5b4db
doc/color-brewery/Color_brewery/index.html
Module Color_brewerySource
Colors palettes and functions to brew colors.
to_int c converts the color to 0xRRGGBB where RR, GG and BB are the red, green and blue values expressed on 2 hexadecimal digits. The alpha value is ignored. This is convenient to interact, say, with the Graphics module.
of_int is the similar to of_int_exn except that it returns None instead of raising an exception.
“Continuous” color ranges
range ~n a b generates a uniform sampling of n points between a and b (with the bounds a and b included in the list of points) together with colors (based on hue at the moment).
with_colors l add a color range to the list l.
Color palettes
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page