Copy a Primitive
- Last UpdatedApr 27, 2023
- 1 minute read
Copying a primitive to another position or series of positions is done by using the REPEAT command with the primitive you wish to copy as current element. The REPEAT command has three syntax variations:
REPEAT 5 BY X20 Y20
Produce five copies of the current primitive, each displaced (X20, Y20) from the last
REPEAT 5 BY @
Produce five copies of the current primitive, using the cursor to define displacement
REPEAT 5 @
Produce five copies of the current primitive, but with first copy at cursor position, displacement of second and subsequent copies equal to that of first copy from original
REPEAT @
Produce five copies of the current primitive, but just one repetition
The example illustrates the use of the REPEAT command.