Skip to content

Tag Archives: JavaScript-p5.js

The atan2() function in p5.js is used to calculate the angle from a specified point of origin measured from the positive x-axis. The values are… Read More
The httpGet() function in p5.js is used to execute an HTTP GET request. The datatype returned is automatically guessed by p5 based on the URL,… Read More
The keyTyped() function is invoked every time when a key is pressed, except for action keys like the directional arrow keys, Ctrl, Shift, Alt, Backspace… Read More
The lights() function in p5.js is used to set the default ambient and directional light in the scene. The default ambient light used is ambientLight(128,… Read More
The textFont() function in p5.js is used to specify the font that will be used to draw text using the text() function. In the WEBGL… Read More
The specularColor() function in p5.js is used to set the color of the specular highlight when it is used with the specular material and highlight.… Read More
The waveform() function is an inbuilt function in p5.js library. This function is used to return the amplitude values, which will be the snapshot of… Read More
The fract() function in p5.js is used to find the fractional part of a number. It can be mathematically represented as {x} where ‘x’ is… Read More
The setBuffer() function is an inbuilt function in p5.js library. This function is used to reset the buffer with the current buffer. Syntax: setBuffer( buf… Read More
The processPeak() function is an inbuilt function in p5.js library. This function is used to track down the audio beats. This function performs the sound… Read More
The shininess() function in p5.js is used to specify the amount of gloss that would be present on the surface of shapes. It is used… Read More
The setPath() function is an inbuilt function in p5.js library. This function is used to reset the source for the SoundFile of new path. Syntax:… Read More
The loadBytes() function is used to read the contents of a file or URL and return it as an object containing the series of bytes.… Read More
The keyPressed() function is invoked whenever a key is pressed. The most recently typed ASCII key is stored into the ‘key’ variable, however it does… Read More
The keyReleased() function is invoked whenever a key is called every time when a key is pressed. The most recently typed ASCII key is stored… Read More

Start Your Coding Journey Now!