swatch: Extract colors from an object

View source: R/swatch.r

swatchR Documentation

Extract colors from an object

Description

Extract a list of colors from a COLOURlovers object

Usage

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

## 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)

leeper/colourlovers documentation built on Aug. 24, 2022, 4:24 a.m.