package color-brewery

  1. Overview
  2. Docs

Module Color_brewery.GradientSource

Sourcetype t

Represent an interpolation between two colors.

Sourceval v : rgba -> rgba -> t

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

Sourceval 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.