50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

hhmR (version 0.0.1)

cg: cg

Description

Creates colour gradient between two hexcodes.

Usage

cg(colour1, colour2, n = 15)

Value

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

Arguments

colour1

The first hexcode colour.

colour2

The second hexcode colour.

n

The length of the vector returned by the function.

Examples

Run this code
cg("white","black",20)

Run the code above in your browser using DataLab