Title: | Color Palettes Inspired by Video Games |
---|---|
Description: | Palettes based on video games. |
Authors: | Nathan Constantine-Cooke [aut, cre] , Hugh Warden [ctb] |
Maintainer: | Nathan Constantine-Cooke <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.0.6.9000 |
Built: | 2024-11-06 06:13:26 UTC |
Source: | https://github.com/nathansam/gameR |
Choose a gameR palette
gameR_cols(palette = NULL, reverse = FALSE)
gameR_cols(palette = NULL, reverse = FALSE)
palette |
Character name of palette. Either banjo, blocks, border, cowboy, cups, cyberpunk, fallout, gris, kirby, ocarina, okami, p3r, p4g, pman, rayman, sonic, spirit, splat, superbros, wow |
reverse |
Logical. Should the palette be reversed? Defaults to FALSE. |
Vector containing a hex color code representation for the chosen palette
Generate continuous palette from a discrete gameR palette
gameR_cont( n, palette = NULL, reverse = FALSE, bias = NULL, interpolate = "spline" )
gameR_cont( n, palette = NULL, reverse = FALSE, bias = NULL, interpolate = "spline" )
n |
Number of colors to be generated |
palette |
Character name of palette. Either banjo, blocks, border, cowboy, cups, cyberpunk, fallout, gris, kirby, ocarina, okami, p3r, p4g, pman, rayman, sonic, spirit, splat, superbros, wow |
reverse |
Logical. Should the palette be reversed? Defaults to FALSE. |
bias |
Passed to colorRamp. A positive number. Higher values give more widely spaced colors at the high end. |
interpolate |
Passed to colorRamp. Use spline or linear interpolation |
Vector containing a hex color code representation for the chosen
palette interpolated across n
values