Learn R Programming

swatches (version 0.5.0)

read_aco: Read colors from Adobe Color (ACO) files

Description

Given a path or URL to an .aco file, this function will return a named character vector (if color names are present) of hex RGB colors.

Usage

read_aco(path, use_names = TRUE, .verbose = FALSE)

Arguments

path

partial or full file path or URL to an ACO file

use_names

add color names to the vector (defaults to TRUE). See NOTE

.verbose

show extra information about ACO file processing

Examples

Run this code
# NOT RUN {
# built-in palette
eighties <- read_aco(system.file("palettes", "tomorrow_night_eighties.aco", package="swatches"))
print(eighties)
show_palette(eighties)

# from the internet directly
# }
# NOT RUN {
tomorrow_night <- read_aco("https://bit.ly/tomorrow-night-aco")
print(tomorrow_night)
show_palette(tomorrow_night)
# }

Run the code above in your browser using DataLab