Skip to content

Tag Archives: JavaScript-p5.js

The unchar() function in p5.js is used to convert a single-character string into its corresponding integer representation. This function is just opposite to the char()… Read More
The char() function in p5.js is used to convert the given string or number value into its corresponding single-character string representation. If the input parameter… Read More
The byte() function in p5.js is used to convert the given string of number, number value or boolean into its byte representation. This byte number… Read More
The windowWidth variable in p5.js is a system variable that is used to store the width of the inner window and it maps to window.innerWidth.… Read More
The touchStarted() function in p5.js is called once after every time a touch is registered. If touchStarted() function is not defined, the mousePressed() function will… Read More
The hex() function in p5.js is used to convert a number into its hexadecimal notation. Syntax: hex(Number) Parameters: This function accepts a parameter Number which… Read More
The unhex() function in p5.js is used to convert a string representation of any input hexadecimal number to its equivalent integer value. Syntax: unhex(String) Parameters:… Read More
The touchEnded() function in p5.js is called when a touch ends. If no touchEnded() function is defined, the mouseReleased() function will be called instead if… Read More
The touchMoved() function in p5.js is called when a touch move is registered. If no touchMoved() function is defined, the mouseDragged() function will be called… Read More
The windowHeight in p5.js is a system variable that is used to store the height of the inner window and it maps to window.innerHeight. Syntax… Read More
The noCursor() function in p5.js is used to hide the cursor from view. Syntax noCursor() Parameters: This function does not accept any parameter. Below program… Read More
The keyIsPressed variable in p5.js is true if any key is pressed and false if no keys are pressed. Syntax: keyIsPressed Below program illustrates the… Read More
The join() function in p5.js is used to join the input array of strings into a single string using separator. This separator might be any… Read More
The int() function in p5.js is used to convert the given boolean, integer, and float value into its integer representation. Syntax:  int(ns) or  int(n, radix)… Read More
The boolean() function in p5.js is used to convert the given string and number value into its boolean representation. Syntax: boolean(Value) Parameters: This function accepts… Read More

Start Your Coding Journey Now!