Skip to contents

Access HEX codes of colours that have been interpolated between those used in the CGEM logo.

Usage

cgem_colours_n(
  n,
  colours = cgem_colours(),
  bias = 1,
  space = "Lab",
  interpolate = "linear",
  alpha = FALSE,
  ...
)

Arguments

n

The number of colours to return.

colours

The colours to interpolate between. By default these are set to the colours from the CGEM logo.

bias

A positive number. Higher values will give more widely spaced colours at the higher end of the colour spectrum.

space

A character string indicating whether the colours should be interpolated in RGB or CIE Lab colour spaces.

interpolate

A character indicating whether a spline or linear interpolation method should be used.

alpha

A logical value indicating whether an alpha channel should be returned.

...

Arguments to be passed to grDevices::colorRampPalette.

Value

A character vector of colours iterpolated from the colours in the CGEM logo.

Examples


barplot(
  1:5,
  col = cgem_colours_n(5)
)