swatch: Extract colors from an object

Description Usage Arguments Details Value Author(s) Examples

View source: R/swatch.r

Description

Extract a list of colors from a COLOURlovers object

Usage

1
swatch(x, ...)

Arguments

x

A colourlovers color, palette, or pattern object.

...

Ignored.

Details

Extract color(s) from a colourlovers object.

Value

A list of character vectors containing hexidecimal representations of colors.

Author(s)

Thomas J. Leeper

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# Get top colors
swatch(clcolors('top'))

# Get colors from a specific palette
swatch(clpalette('113451'))

# Get colors from specific pattern
swatch(clpattern('1451'))

## End(Not run)

colourlovers documentation built on Jan. 13, 2021, 11:52 a.m.