is a directive that can be added to any tag to repeat the object represented by that tag multiple times.
For example, to create a row of five cubes, instead of writing
times, we write only one
<cube/> and add
repeat="5" to the tag.
also allows us to iterate through an array using the expression:
repeat="variable_name in array"
For example, we add
i in [1,2,3] to the cube tag and
i becomes a variable
we will have access to in the rest of the tag. Here, we give
i as an
argument to the transform command to scale each repeated instance
of the cube by 1, 2, and 3 respectively.