Description Usage Arguments Note Examples
Given a path or URL to an .ase
file, this function will return
a named character vector (if color names are present) of hex RGB colors.
1 |
path |
partial or full file path or URL to an ASE file |
use_names |
add color names to the vector (defaults to |
.verbose |
show extra information about ASE file processing |
When using named color palettes in a ggplot2
scale_
context, you
must unname
them or set use_names
to FALSE
.
Not sure if this is a bug or a deliberate feature in ggplot2. Also, Neither Lab nor
greyscale colors are supported.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# built in palette
keep_the_change <- read_ase(system.file("palettes", "keep_the_change.ase", package="adobecolor"))
print(keep_the_change)
show_palette(keep_the_change)
# from the internet directly
metal <- read_ase("https://github.com/picwellwisher12pk/en_us/raw/master/Swatches/Metal.ase")
print(metal)
show_palette(metal)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.