Skip to content

Tag Archives: JavaScript-p5.js

The ortho() function in p5.js is used to set the orthographic projection of a 3D sketch. In this projection, all the objects with the same… Read More
The createGraphics() function in p5.js is used for creating an off-screen graphics buffer. It creates and returns a new p5.Renderer object. Syntax: createGraphics(w, h, [renderer])… Read More
The debugMode() function in p5.js is used for visualizing 3D space by adding a grid that indicates the ground in of geometry. It can also… Read More
The seven-segment display is a form of an electronic display device for displaying decimal numerals that is an alternative to the more complex dot matrix… Read More
The working of the clock is simple. The current hours, minutes and seconds is retrieved using the hour(), minute() and second() methods. The number returned… Read More
The focused variable in p5.js is used to check whether the current window or sketch is in focus or not. When the sketch is in… Read More
The spotLight() function in p5.js is used to create a spotlight with a given color, position, direction of light, angle and concentration. A scene can… Read More
The textureWrap() function in p5.js is used to set the global texture wrapping mode. It can be used to set the behavior of texture when… Read More
The camera() function in p5.js is used to set the virtual camera’s position on a 3D sketch. This can be used to simulate the position… Read More
The perspective() function in p5.js is used to define a perspective projection for the camera in a 3D sketch. Objects that are close to the… Read More
The frustum() function in p5.js is used to set the frustum of the camera, thereby changing its perspective. A frustum is a geometric form that… Read More
The textureMode() function in p5.js is uses to set the coordinate space for texture mapping. This function works on the WEBGL mode. The IMAGE mode… Read More
The preload() function in p5.js is used to asynchronously load files before the setup() function. It runs exactly once in when the sketch is loaded.… Read More
The friendly error system (FES) is used to warn the user when the non-minified p5.js file (and not p5.min.js) is used. These friendly errors are… Read More
DOM is a way to represent the webpage in a structured hierarchical way so that it will become easier for programmers and users to glide… Read More

Start Your Coding Journey Now!