The windowResized() function in p5.js is called once every time the browser window is resized. It adjusts it height and width automatically whenever the size of the window is increased. This function is invoked automatically as soon as window is resized and then create a new canvas corresponding to it.
Parameters: This function does not accept any parameter.
Below program illustrates the windowResized() function in p5.js:
- How to get the function name inside a function in PHP ?
- p5.js | red() function
- p5.js | min() function
- D3.js | d3.map.get() Function
- D3.js | d3.map.has() Function
- p5.js | cos() function
- PHP | dir() Function
- p5.js | pan() Function
- PHP | pi( ) Function
- D3.js | d3.set.add() Function
- p5.js | log() function
- p5.js | sin() function
- p5.js | tan() function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.