pop()

Ends a command group that contains its own printing state.

By default, printing parameters (e.g., extrusionMultiplier(), printSpeed()) and transformations (e.g., translate()) apply to all subsequent commands. push() and pop() can be used to constrain the effect of print parameters and transformations to a specific group of commands. The functionality follows push() and pop() in p5.js.

push() and pop() contain the effects of the following functions:

Examples