A two-dimensional drawing api meant for modern browsers. It is renderer agnostic enabling the same api to render in multiple contexts: webgl, canvas2d, and svg.Two.js is deeply inspired by flat motion graphics. As a result, two.js aims to make the creation and animation of flat shapes easier and more concise. At the time of this writing two.js unfortunately does not support text or images.
Two.js has a built in animation loop. It is simple in nature and can be automated or paired with another animation library.At its core two.js relies on a scenegraph. This means that when you draw or create an object (a
Two.Group), two actually stores and remembers that. After you make the object you can apply any number of operations to it — e.g: