loop: Loop

View source: R/loop.R

loopR Documentation

Loop

Description

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


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)
}


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