Google News
logo
p5.js - Interview Questions
What is The rect() Function in p5.js?
The rect() function draws a rectangle to the canvas. It takes four arguments: the first two arguments are the x and y positions of the top left corner of the rectangle. The third argument is the width, and the fourth argument is the height.
Rectangle
Advertisement