Learn R Programming

colourlovers (version 0.3.6)

swatch: 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.

Value

A list of character vectors containing hexidecimal representations of colors.

Details

Extract color(s) from a colourlovers object.

Examples

Run this code
# 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'))
# }

Run the code above in your browser using DataLab