Reference

Table of Contents  ▸  List of Commands  ▸  Control Flow  ▸  repeat◀  quit    |    return  ▶

repeat

Built-in command

Arguments:

Description:

Start nb_iterations iterations of a repeat...done block.

nb_iterations is a mathematical expression that will be evaluated.

This command has a tutorial page.

Examples of use:

• Example #1

$ gmic image.jpg split y repeat $!,n shift[$n] $<,0,0,0,2 done append y

Command: image.jpg split y repeat $!,n shift[$n] $<,0,0,0,2 done append y

• Example #2

$ gmic image.jpg mode3d 2 repeat 4 imagecube3d rotate3d 1,1,0,40 snapshot3d 400,1.4 done

Command: image.jpg mode3d 2 repeat 4 imagecube3d rotate3d 1,1,0,40 snapshot3d 400,1.4 done