-
Notifications
You must be signed in to change notification settings - Fork 3
Push
Christopher Ross-Gill edited this page Aug 1, 2016
·
1 revision
Stores the current attribute setup in stack
Arg | Type | Description | Values |
---|---|---|---|
draw-block | [block!] |
Notes and Examples
The PUSH command stores the whole DRAW attribute settings (including matrix and pen settings) into the stack. You can then change the current transformation matrix, pens etc. inside the PUSH command block but all commands AFTER the PUSH command block will use the attribute setup setup stored by the PUSH command.
line-width 3 pen red transform 200x200 30 1 1 0x0 box 100x100 300x300
push [reset-matrix pen green box 100x100 300x300 transform 200x200 60 1 1 0x0 pen blue box 100x100 300x300]
box 180x180 220x220 pen white box 150x150 250x250