Learn R Programming

SpecHelpers (version 0.2.7)

prepCIEgradient: Compute a gradient to fill the CIE chromaticity diagram

Description

This function creates a gradient to fill the CIE chromaticity diagram.

Usage

prepCIEgradient(vertices = NULL, colSpace = "sRGB", ex = 1, ...)

Arguments

vertices

The vertices of a polygon that is to be filled with the gradient.

colSpace

Character. The color space model to use.

ex

Numeric. The exposure factor. This shifts the gradient. Be extremely careful with this. See plotCIEchrom for full details.

Arguments to be passed downstream.

Value

An array containing the data needed to draw the gradient.

See Also

plotCIEchrom for examples of this function in use.