Options for the renderer
Private
buffersThe camera to render with
The HTML canvas element
Private
currentPrivate
currentThe WebGL Rendering Context
Private
shaderThe text renderer
The global transform
The default vertex color
Draws an arc (to the current path). For a circle, set startAngle
to 0
and endAngle
to Math.PI * 2
The center of the arc
The radius of the arc
The starting angle of the arc
The ending angle of the arc
The detail of the arc. Higher values = smoother arc. Defaults to 1
Private
buildPrivate
buildClears the screen with the specified color
The clear color
Private
fillThe text to render
The position to render the text at
Returns the width of the specified text using the current font and text renderer
The text to measure
The width of the text
Scales up by the specified vector
The vector to scale the camera by
Scales up by the specified x and y values
The x value to scale the camera by
The y value to scale the camera by
Scales uniformly by the specified value
The value to scale the camera by
Sets the current buffer to draw to
The buffer to draw to
Sets the default vertex color
The color to set
Strokes (outlines) everything in the current path since the last beginPath()
call with the specified width and options.
The stroke width
Options for the stroke
The text to render
The position to render the text at
Translates the camera by the specified vector
The vector to translate the camera by
Translates the camera by the specified x and y values
The x value to translate the camera by
The y value to translate the camera by
Draws vertices (to the current path).
Draws vertices (to the current path).
Draws vertices (to the current path).
The list of vertices to draw
Generated using TypeDoc
The main Renderer class with all the rendering function