package color-brewery

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
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.

OCaml

Innovation. Community. Security.