## p5.js | green() function

The green() function in p5.js is used to extract the green value from a color or pixel array. Syntax: green(c) Parameters: This function accepts single… Read More »

## p5.js | acos() function

The acos() function in p5.js is used to calculate the arc cosine value. The domain of this function is -1 to +1 and the range… Read More »

## p5.js | sin() function

The sin() function in p5.js is used to calculate the sine value of an angle in radians taken as the input parameter of the function… Read More »

## p5.js | brightness() function

The brightness() function in p5.js is used to extract the HSB brightness value from a color or pixel array. Syntax: brightness(c) Parameters: This function accepts… Read More »

## p5.js | asin() function

The asin() function in p5.js is used to calculate the inverse of sine (arc sine). If the input value range is -1 to 1 then… Read More »

## p5.js | cos() function

The cos() function in p5.js is used to calculate the cosine value of an angle (taken in radian) as input parameter of the function and… Read More »

## p5.js | Constants | PI

The PI is a mathematical constant with the value 3.14159265358979323846. It is the circumference’s ratio of a circle to its diameter. Syntax PI Below program… Read More »

## p5.js | round() function

The round() function in p5.js is used to calculate the round value of a number. It calculates the integer closest to the number. Syntax round(number)… Read More »

## p5.js | red() function

The red() function in p5.js is used to extract the red value from a color or pixel array. Syntax: red(c) Parameters: This function accepts single… Read More »

## p5.js | log() function

The log() function in p5.js is used to get the natural logarithm (of base “e”) of any number taken as input for the parameter of… Read More »

## p5.js | sq() function

The sq() function in p5.js is used to calculate the square value of a number. The square of a number is always positive. Syntax sq(number)… Read More »

## p5.js | month() function

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 »

## p5.js | blue() function

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 »

## p5.js | shuffle() function

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 »

## p5.js | background() function

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 »