The configuration options for the canvas.
The background color for the canvas.
The WebGL2 rendering context for drawing on the canvas.
The HTMLCanvasElement associated with the Webani canvas.
The scene that contains all the objects, cameras, lights, etc.
OptionalskyboxThe skybox for the scene, optional.
Static OptionaldefaultThe default WebaniCanvas instance.
Clears the scene and resets the canvas.
Waits for all animations in the queue to finish.
A promise that resolves when all animations finish.
Retrieves the location of a shader variable.
The name of the shader variable.
The location of the shader variable.
Clears the canvas with WebGL.
Registers a handler to be called when a single animation finishes.
The handler to call when an animation finishes.
Registers a handler to be called when the entire animation queue finishes.
The handler to call when the queue finishes.
Registers an update loop to be called on every frame.
The handler to call every frame.
Pauses the rendering of the scene.
Redraws the scene, including the skybox and objects.
Starts rendering the provided animations on the canvas.
The animations to render.
Resumes the rendering of the scene.
Sets the skybox of the scene.
The images for the skybox.
Sets the skybox as a solid background color.
The color to set as the background.
Starts recording the canvas output as a video.
Stops the recording and saves the video as a file after the most recently added animation finishes playing.
A promise that resolves once the recording is finished.
Creates an instance of the WebaniCanvas class.