Skip to contents

Paris 2024 palette generator

Usage

paris2024_palette(name, n, type = c("discrete", "continuous"), reverse = FALSE)

Arguments

name

Name of the colour palette. Options are Logo, OlympicRings, ParalympicAgitos, GamesLook, Generation2024, Impact2024, TerreDeJeux, Tickets and Flame.

n

Number of colours in the palette. Palettes have 2 to 5 colours that can be used as a discrete palette. To use more, use a continuous palette.

type

Usage of palette as "continuous" or "discrete". Continuous usage interpolates between colors to create a scale of values. If omitted, function assumes continuous if n > length of palette, and discrete if n < length of palette.

reverse

Whether to reverse colour palette (TRUE) or not (FALSE, default).

Value

A vector of colours.

Examples

paris2024_palette("GamesLook", n = 6, type = "continuous")

paris2024_palette("Logo", 2)

paris2024_palette("OlympicRings")

paris2024_palette("OlympicRings", reverse = TRUE)