What is the radii argument for rectangles?

rectMode(CENTER);
rect(0, 0, s*xscale, s*yscale, 7); 
/// 0: x-coordinate, 0: y-coordinate, s*xscale: width, s*yscale: height, 7: the radii for all four corner

How to understand that 7 is the radii for all four corners of the rectangle? Any comments are greatly appreciated.

pls first look up a command
like in this online reference
https://processing.org/reference/rect_.html

1 Like

The corners are round (optional)

The degree of the roundness is 7

1 Like