shuffle_colors-deprecated: Reshuffle a list of colors.

shuffle_colors-deprecatedR Documentation

Reshuffle a list of colors.

Description

This function reshuffles a vector of colours so that in a list of n colors, every color i in {1, n / 2} will be placed next to color i + n / 2. This is useful for visualization of automatically generated color palettes based upon for example gradients or HSL color circles.

Usage

shuffle_colors(clrs)

Arguments

clrs

A vector of colors to reshuffle.

Value

A reshuffled vector of clrs.

See Also

fantaxtic-deprecated

Examples

shuffle_colors(gen_colors(6))

gmteunisse/Fantaxtic documentation built on June 7, 2024, 8:47 a.m.