anagrams: anagram colors

View source: R/anagrams.R

anagramsR Documentation

anagram colors

Description

This function returns the anagrams of a given color. Anagrams are made by rearranging the hexadecimal letter pairs to form another color.

Usage

  anagrams(color)

Arguments

color

an R color name or a color in hexadecimal notation

Details

An anagram is a word that is made by rearranging the letters of another word. In this case, we have color names instead of words, and hexadecimal letter-pairs instead of single letters. For example, the color "#CD1091" is composed by three pairs "CD", "10", and "91". By rearranging these three pairs, we could obtain an anagram like "#CD9110" or "#10CD91"

Value

A character vector with the anagram colors of a given color in hexadecimal notation

Author(s)

Gaston Sanchez

See Also

pizza

Examples

# anagrams of 'tomato'
ana_tom <- anagrams("tomato")

# plot tomato anagrams in a color 'pizza' wheel
pizza(ana_tom, bg = "gray20")

gastonstat/colortools documentation built on April 8, 2022, 5:59 a.m.