mcolors: Colour palette generation from matrix of RGB values

View source: R/utilities.R

mcolorsR Documentation

Colour palette generation from matrix of RGB values

Description

Colour palette generation from matrix of RGB values

Usage

mcolors(
  n,
  colmatrix = matrix(c(0, 0, 1, 1, 1, 1, 1, 0, 0), 3, 3, byrow = TRUE)
)

Arguments

n

Integer number of colorus to produce.

colmatrix

A numeric matrix of three columns (R,G,B) to generate colour palette from.

Value

A vector of n colours in hexadecimal RGB format.

Examples

mcolors(5)

multiblock documentation built on Nov. 18, 2023, 5:06 p.m.