rotate: Rotate templates and images

Description Usage Arguments Value Examples

View source: R/rotate.R

Description

Rotate templates and images

Usage

1
rotate(stimuli, degrees = 0, fill = "none", patch = FALSE)

Arguments

stimuli

list of class stimlist

degrees

degrees to rotate

fill

background color

patch

whether to use the patch function to set the background color

Value

stimlist with rotated tems and/or images

Examples

1
2
3
4
5
6
7
8
demo_stim() %>%
  rotate(45, fill = "dodgerblue") %>%
  draw_tem() %>%
  plot()

demo_stim() %>%
  rotate(45, patch = TRUE) %>%
  plot()

facelab/webmorph documentation built on April 11, 2021, 6:34 a.m.