horiz_eyes: Make eyes horizontal

View source: R/horiz_eyes.R

horiz_eyesR Documentation

Make eyes horizontal

Description

Rotate each stimulus so the eye points are horizontal.

Usage

horiz_eyes(stimuli, left_eye = 0, right_eye = 1, fill = wm_opts("fill"))

Arguments

stimuli

list of stimuli

left_eye

The first point to align (defaults to 0)

right_eye

The second point to align (defaults to 1)

fill

background color to pass to rotate, see color_conv()

Value

list of stimuli with rotated tems and/or images

See Also

Stimulus manipulation functions align(), crop_tem(), crop(), greyscale(), image_func(), mask_oval(), mask(), mirror(), pad(), resize(), rotate(), to_size()

Examples

stimuli <- demo_unstandard(1:3)
horiz_eyes(stimuli, fill = "red")


webmorphR documentation built on June 2, 2022, 5:07 p.m.