When comparing Two.js vs PERGOLA, the Slant community recommends Two.js for most people. In the question“What are the best JavaScript drawing libraries?” Two.js is ranked 17th while PERGOLA is ranked 25th. The most important reason people chose Two.js is:
Good examples.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Excellent documentation
Good examples.
Pro Renderer agnostic
Uses "the same api to draw in multiple contexts: svg, canvas, and webgl."
Pro HTML
Pergola runs seamlessly in an HTML environment (option in configuration file). All the examples are provided both as SVG standalone and embedded in HTML, and are strictly equal.
Besides its universal Node Helper (http://www.svgmagazine.com/jul2011/dom-helper.html) Pergola also provides the equivalent for building HTML nodes and <foreignObject> HTML nodes.
Pro SVG native
The first and most accomplished SVG native library, 100% cross-platform compatible.
Cons
Con Commercial license
PERGOLA does not offer a free version. The price for a single developer to use PERGOLA is 400 €.