cg {hhmR}R Documentation

cg

Description

Creates colour gradient between two hexcodes.

Usage

cg(colour1, colour2, n = 15)

Arguments

colour1

The first hexcode colour.

colour2

The second hexcode colour.

n

The length of the vector returned by the function.

Value

A vector of hexcodes of length n, containing a colour gradient between colour =1 and colour2.

Examples

cg("white","black",20)


[Package hhmR version 0.0.1 Index]