public static class Draw.Rect extends DrawCommand
| Constructor and Description |
|---|
Rect(float x,
float y,
float w,
float h)
Creates the rectangle command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(processing.core.PApplet parent)
Does the actual drawing of the shape/line/etc.
|
draw, setParentpublic Rect(float x,
float y,
float w,
float h)
x - the x-coordinate of upper-left cornery - the y-coordinate of upper-left cornerw - the width of the rectangleh - the height of the rectanglepublic void draw(processing.core.PApplet parent)
DrawCommanddraw in class DrawCommandparent - the PApplet to draw toProcessing Library loom by Cora Johnson-Roberson. (c) 2014-2016