kick: Roundhouse kick

Description Usage Arguments Examples

View source: R/kick.R

Description

Generate a roundhouse kick from Chuck Norris...with a random fact (or user- supplied text).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
kick(
  text = NULL,
  type = 1,
  width = 35,
  size = 20,
  color = "white",
  fps = NULL,
  loop = 0,
  ...
)

Arguments

text

Character string specifying the text to display with the roundhouse (preferably, a Chuck Norris fact). If NULL, a fact is selected at random from the ICNDb.

type

Integer specifying which roundhouse kick to generate. Current options are 1 (standard roundhouse kick) or 2 (roundhouse kick bad guy through bar window). Default is 1.

width

Integer specifying the number of characters per line. Default is 35

size

Integer specifying the font size in pixels. Default is 10.

color

Character string specifying the color of the text.

fps

Integer specifying the frames per second of the roundhouse kick. (Must be a factor of 100.)

loop

Integer specifying the number of times the roundhouse kick should be repeated. Though a single roundhouse kick is always sufficient, the default is 0 which results in an infinite number of roundhouse kicks.

...

Additional optional arguments to be passed onto image_annotate.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Random fact
kick(width = 40, size = 15)

# User-supplied text
kick("Chuck Norris can’t test for equality because he has no equal.",
     type = 2, width = 40, size = 25, fps = 5)

## End(Not run)

roundhouse documentation built on Oct. 23, 2020, 8:12 p.m.

Related to kick in roundhouse...