powered by
Given a path or URL to an .colors file, this function will return a named character vector (if color names are present) of hex RGB colors.
.colors
read_kde(path, use_names = TRUE, .verbose = FALSE)
partial or full file path or URL to a GPL file
add color names to the vector (defaults to TRUE). See NOTE
TRUE
show extra information about GPL file processing
# NOT RUN { # built-in palette fourty <- read_kde(system.file("palettes", "fourty.colors", package="swatches")) print(fourty) #show_palette(fourty) # show_palette(bright) # }
Run the code above in your browser using DataLab