Bézier curves, especially the cubic curves, are well known from their use in vector graphics. However they can also be used to trace a continuous path in the RGB color space using only a few predefined control points. The curve, or set of curves, can then be used to map an interval of continuous values to a gradient of colors. The colors can be useful as a visialization of for example a measurement in the temerature range from 0°C to 40°C.

Quadratic Bézier curves

Start first curve (c0)
Intermediate controll point (c1)
End first curve, start second curve (c2)
Intermediate controll point (c3)
End second curve (c4)
    

Cubic Bézier curves

Start point (c0)
Intermediate controll point (c1)
Intermediate controll point (c2)
End point (c3)