Name

square()

Examples
square(10, 10, 55)
Description Draws a square to the screen. A square is a four-sided shape with every angle at ninety degrees and each side is the same length. By default, the first two parameters set the location of the upper-left corner, the third sets the width and height. The way these parameters are interpreted, however, may be changed with the rectMode() function.
Syntax
square(a, b, extent)
Parameters
afloat: x-coordinate of the square by default
bfloat: y-coordinate of the square by default
extentfloat: extent of the square by default
Related rect()
rectMode()

Updated on Mon Sep 21 15:53:25 2020.

If you see any errors or have comments, please let us know.