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 |
| ||||||
Related |
rect() rectMode() |
Updated on Mon Sep 21 15:53:25 2020.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License