p5.js Environment Complete Reference

|
Function |
Description |
|---|---|
| print() | It writes the content on console area of the web browser. |
| cursor() | It sets the cursor to a predefined symbol or an image. |
| frameRate() | It specifies the number of frames to be displayed every second. |
| noCursor() | It is used to hide the cursor from view. |
| displayWidth | It stores the width of the screen display of the device. |
| displayHeight | It stores the height of the screen display of the device. |
| windowWidth | It stores the width of the inner window. |
| windowHeight | It stores the height of the inner window. |
| windowResized() | It adjusts it height and width automatically whenever the size of the window is increased. |
| width | It stores the width of the drawing canvas. |
| height | It stores the height of the drawing canvas. |
| fullscreen() | It is used to get the current fullscreen state of the user’s browser window. |
| pixelDensity() | It sets the pixel scaling for high pixel density displays. |
| displayDensity() | It returns the pixel density of the current display the sketch. |
| getURL() | It is used to return the current URL. |
| getURLPath() | It returns the current URL path as an array. |
| getURLParams() | It return the current URL parameters as JavaScript object |
Whether you’re preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, zambiatek Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we’ve already empowered, and we’re here to do the same for you. Don’t miss out – check it out now!



