color-brewery

Offer colors palettes and functions to brew colors
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library color-brewery
type t

Represent an interpolation between two colors.

val v : rgba -> rgba -> t

v c0 c1 construct a gradient from the color c0 to c1.

val rgba : t -> float -> rgba

rgba g s returns the color corresponding to s ∈ [0,1], where s = 0. returns the first color provided in the gradient and s = 1. the second.

val cmyk : t -> float -> cmyk

Same as rgba except that it returns a CMYK color.