tetris_color: Tetris colors

Description Usage Arguments Value Examples

Description

Returns a vector of colors that match the colors of the Tetromino pieces in a range of different Tetris editions. See https://en.wikipedia.org/wiki/Tetris#Tetromino_colors for more information of names and color. Name of color palettes are "Vadim Gerasimov", "Microsoft", "Sega", "The New Tetris", "The Tetris Company", "Atari", "The Soviet Mind Game", "Tetris DX", "Super Tetris 3", "Tetris Plus" and "The Next Tetris". Defaults to "Vadim Gerasimov". Will pad with white if after 7 colors are used.

Usage

1
tetris_color(palette = "Vadim Gerasimov", n = 7)

Arguments

palette

Character. Name of color scale. Pick between "Vadim Gerasimov", "Microsoft", "Sega", "The New Tetris", "The Tetris Company", "Atari", "The Soviet Mind Game", "Tetris DX", "Super Tetris 3", "Tetris Plus" and "The Next Tetris". Defaults to "Vadim Gerasimov".

n

Integer. Number of colors. Maximum of 7 available. Defaults to 7.

Value

Numerical.

Examples

1
2
tetris_color(7)
tetris_color("Microsoft", n = 4)

EmilHvitfeldt/ggtetris documentation built on May 29, 2019, 2:48 p.m.