p5.js noSmooth() Function
In p5.js all images, fonts, shapes, etc. are set to smooth() by default, except for 3D models, there noSmooth() is active by default. As we know smooth() function smooths the edges of listed elements. So, conversely noSmooth() function restricts smoothing of edges of elements.
Smoothing of edges takes some time. So, If you want to run your p5.js sketch faster and you don’t care much about the visuals. You can use noSmooth() function.
Parameters: The noSmooth() function does not accept any parameters.
Output: Top ellipse is smooth and bottom ellipse is noSmooth