ghibli_palette | R Documentation |
These are some color palettes from Studio Ghibli films. All color schemes are derived from Movies In Color.
ghibli_palette(name, n, direction = 1, type = c("discrete", "continuous"))
name |
Name of desired palette. |
n |
Number of colors desired. All palettes now only have seven colors. If omitted, uses all colours. |
direction |
Either '1' or '-1'. If '-1' the palette will be reversed. |
type |
Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colours. |
A vector of colours.
ghibli_palette("PonyoLight")
ghibli_palette("LaputaMedium")
ghibli_palette("SpiritedDark")
ghibli_palette("MarnieMedium2", 3)
# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
pal <- ghibli_palette(name = "YesterdayLight", n = 21, type = "continuous")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.