Color_brewery.Gradient
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.
v c0 c1
c0
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.
rgba g s
s
s = 0.
s = 1.
val cmyk : t -> float -> cmyk
Same as rgba except that it returns a CMYK color.
rgba