charRect()
charRect()
draws a rectangle on the sketch. Analagous to rect()
in p5. Note: both the width and the height must be positive and both are affected by setCoordinateMode()
.
charRect(x, y, w, h)
x
: X coordinate of top left point
y
: Y coordinate of top left point
w
: Width of the rectangle
h
: Height of the rectangle
Nothing