public static class Draw.Compound extends DrawCommand
Constructor and Description |
---|
Compound(Collection<DrawCommand> commands)
Create a new Compound command.
|
Compound(DrawCommand... commands)
Create a new Compound command.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(processing.core.PApplet parent)
Does the actual drawing of the shape/line/etc.
|
void |
setParent(processing.core.PApplet parent) |
draw
public Compound(DrawCommand... commands)
commands
- the commands to be combinedpublic Compound(Collection<DrawCommand> commands)
commands
- the commands to be combinedpublic void setParent(processing.core.PApplet parent)
setParent
in class DrawCommand
public void draw(processing.core.PApplet parent)
DrawCommand
draw
in class DrawCommand
parent
- the PApplet to draw toProcessing Library loom by Cora Johnson-Roberson. (c) 2014-2016