package color-brewery
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
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