colGrad {roots}R Documentation

Generates a smooth colour gradient

Description

Generates a smooth colour gradient

Usage

colGrad(x, darken = 1)

Arguments

x

Number of colours required

darken

Multiplication factor. Must be less than 1. Smaller the darker.

Details

Generates a smooth colour gradient Goes from red to red/green to green to green/blue to blue to blu/red

Value

Returns vector of RGB colours

Author(s)

Wajid Jawaid

Examples

gradientColors <- colGrad(10)

[Package roots version 1.0 Index]