Skip to content

Tag Archives: JavaScript-p5.js

The month() function in p5.js is used to get the current month from the system’s clock. Syntax month() Parameters: The function does not accept any… Read More
The blue() function in p5.js is used to extract the blue value from a color or pixel array. Syntax: blue(c) Parameters: This function accepts single… Read More
The shuffle() function in p5.js is used to shuffle the order of given array elements. Syntax: shuffle(Array) Parameters: This function accepts a parameter Array whose… Read More
The background() function in p5.js is used to set the color used for the background of the p5.js canvas. The default background is transparent. The… Read More
The saturation() function in p5.js is used to extract the HSL and HSB saturation value from a color or pixel array. Syntax: saturation(c) Parameters: ThIS… Read More
The reverse() function in p5.js is used to reverse the order of the given array element. Syntax: reverse(Array) Parameters: This function accepts a parameter Array… Read More
The min() function in p5.js is used to get the minimum value from the sequence of numbers. Syntax: min(a, b) or min(arr) Parameters: The min(a,… Read More
The shorten() function in p5.js is used to decrease the number of elements of the given array by one. Syntax: shorten(Array) Parameters: This function accepts… Read More
The line() function is an inbuilt function in p5.js which is used to draw a line. In order to change the color of the line… Read More
The minute() function in p5.js is used to return the current minute in the system clock. The value of minute() function lies between 0 to… Read More
The pow() function in p5.js is used to calculate the power of a number to the given number. It is an efficient way of multiplying… Read More
The bezierDetail() function in p5.js is used to set the resolution at which Beziers display. In order to use it we must use WEBGL render… Read More
The bezier() function in p5.js is used to draw cubic Bezier curve on the screen. These curves are defined by a series of anchor and… Read More
The year() function in p5.js is used to return the current year from the system clock. It returns an integer value which represents current year.… Read More
The hour() function in p5.js is used to return the current hour from the system clock. It returns an integer value lies between 0 to… Read More

Start Your Coding Journey Now!