In
color science, a color gradient (also known as a color ramp or a color progression) specifies a range of position-dependent
color
Color (or colour in English in the Commonwealth of Nations, Commonwealth English; American and British English spelling differences#-our, -or, see spelling differences) is the visual perception based on the electromagnetic spectrum. Though co ...
s, usually used to fill a region.
In assigning colors to a set of values, a gradient is a continuous colormap, a type of
color scheme
In color theory, a color scheme is a combination of 2 or more colors used in aesthetic or practical design. Aesthetic color schemes are used to create style and appeal. Colors that create a harmonious feeling when viewed together are often u ...
.
In computer graphics, the term swatch has come to mean a palette of active colors.
RAL K5 Fächer RGB.jpg, RAL CLASSIC K5 color fan
Guidapantonestandard.JPG, Pantone color guide
Nuancier Pantone.jpg, cards of Pantone base colors and blends
HKS-K-Farbfaecher.jpg, HKS colour fan
Definitions
* Color gradient is a set of colors arranged in a
linear order
In mathematics, a total order or linear order is a partial order in which any two elements are comparable. That is, a total order is a binary relation \leq on some set X, which satisfies the following for all a, b and c in X:
# a \leq a ( ref ...
( ordered)
* A continuous colormap is a curve through a
colorspace
3D RGB profile of the Linear Gray Continous color gradient.png, gray
3D RGB profile of cubehelix color gradient.png, cubehelix
0 3d 60 75 v.png, HSV rainbow
3D RGB profile of the Smooth Cool Warm diverging color gradient by Kenneth Moreland.png, diverging
Strict definition
A colormap is a
function which associate a real value r with point c in
color space
A color space is a specific organization of colors. In combination with color profiling supported by various physical devices, it supports reproducible representations of colorwhether such representation entails an analog or a digital represe ...
:
which is defined by:
* a colorspace C
* an increasing sequence of
sampling points