public static class Draw.Line extends DrawCommand
Constructor and Description |
---|
Line(float x1,
float y1,
float x2,
float y2)
Creates the Line command.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(processing.core.PApplet parent)
Does the actual drawing of the shape/line/etc.
|
draw, setParent
public Line(float x1, float y1, float x2, float y2)
x1
- x-coordinate of first pointy1
- y-coordinate of first pointx2
- x-coordinate of second pointy2
- y-coordinate of first pointpublic 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