Skip to contents

Morph between each image in a list of stimuli, looping back to the start.

Usage

loop(stimuli, steps = 10, ...)

Arguments

stimuli

list of stimuli to morph between

steps

number of steps from one image to the next

...

arguments to pass to trans()

Value

list of stimuli containing each step of the loop

See also

WebMorph.org functions avg(), continuum(), symmetrize(), trans(), webmorph_up()

Examples

# \donttest{
if (webmorph_up()) {
  # align and crop images
  stimuli <- demo_unstandard(1:5) |> 
    align() |> crop_tem()
  
  loop <- loop(stimuli, 5)
  
  # create an animated gif
  animate(loop, fps = 10)
}
# }