# Two.SVGRenderer
Extends: Two.Events
This class is used by Two when constructing with type
of Two.Types.svg
(the default type). It takes Two.js' scenegraph and renders it to a <svg />
.
# Constructor
Argument | Description |
---|---|
parameters | This object is inherited when constructing a new instance of Two. |
parameters.domElement | The <svg /> to draw to. If none given a new one will be constructed. |
# Utils
Two.SVGRenderer.Utils
A massive object filled with utility functions and properties to render Two.js objects to a <svg />
.
# setSize
Two.SVGRenderer.setSize
Argument | Description |
---|---|
width | The new width of the renderer. |
height | The new height of the renderer. |
Change the size of the renderer.