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 Fri Aug 16 21:51:57 2019.
Creative Commons License