coolors_pal: Get a color palette from a coolors.co URL

View source: R/coolors.R

coolors_palR Documentation

Get a color palette from a coolors.co URL

Description

Get a color palette from a coolors.co URL

Usage

coolors_pal(url)

Arguments

url

The link to a coolors.co palette, e.g. "https://coolors.co/29adb2-182326-2a3a3f-69818c-8ea4b2"

Value

character(5) with RGB color codes, e.g. c("#29adb2", "#182326", "#2a3a3f", "#69818c", "#8ea4b2") for the example url.

Note

It's only the URL that's parsed, there's no need for an internet connection. The url does not need to be valid, since only hex strings of length 6 (i.e. color codes like F75AB1) are looked for, and a ⁠#⁠ is prepended.

Examples

coolors_pal("https://coolors.co/29adb2-182326-2a3a3f-69818c-8ea4b2")

jemus42/jemisc documentation built on March 24, 2024, 8:18 p.m.