Skip to content

Tag Archives: JavaScript-p5.js

The curvePoint() function in p5.js is used to evaluate the coordinates of a curve at the given point. It takes in the coordinates of the… Read More
The ambientLight() function in p5.js is used to create an ambient light with the specified color. Ambient light does not have any particular source. It… Read More
The pointLight() function in p5.js is used to create a point lights with the specified color and position in the scene. A scene can have… Read More
The httpPost() function in p5.js is used to execute an HTTP POST request. The datatype returned is automatically guessed by p5 based on the URL,… Read More
The orbitControl() function in p5.js is used to enable the movement around a 3D sketch using a mouse or trackpad. The left mouse button can… Read More
The httpDo() function in p5.js is used to execute an HTTP request. The type of HTTP request can be specified as a parameter, which is… Read More
The lightFalloff() function in p5.js is used to set the falloff for point lights in the scene. Light falloff means the reduction of illumination with… Read More
The normalMaterial() function in p5.js is used to create a normal material for an object. A normal material is not affected by any light and… Read More
The noDebugMode() function in p5.js is used to disable the debug mode enabled by debugMode() function in a 3D sketch. Syntax: noDebugMode() Parameters: This function… Read More
The ambientMaterial() function in p5.js is used to create a ambient material for a geometry with the given color. The ambient material is used to… Read More
The directionalLight() function in p5.js is used to create a directional light with the specified color and direction. The rays of the directional light travel… Read More
The specularMaterial() function in p5.js is used to create a specular material for a geometry with the given color. The specular material is a shiny… Read More
The noLights() function in p5.js is used to remove all lights in the sketch for the materials that would be rendered after this function. Any… Read More
The emissiveMaterial() function in p5.js is used to create a emissive material for a geometry with the given color. The emissivity of an object gives… Read More
The erase() function in p5.js is used to subtract all the drawings that would be done after the use of this function. The subtracted drawing… Read More

Start Your Coding Journey Now!