Description
Zdog is a small 3D JavaScript engine for drawing simple models on the web, rendered to a canvas or SVG. It is a pseudo-3D engine: its shapes exist in three-dimensional space, but they are drawn as flat shapes, which suits the look of vector illustration. Circular shapes are rendered as true circles with rounded edges rather than polygons, so curves stay smooth. The whole library is about 2,100 lines of code and 28KB minified. Models are built with a declarative API, where you add shapes such as ellipses, rectangles and cones to an illustration and position them by translation and rotation. An illustration can be rotated by dragging, and you can respond to drag events, for example to stop an animation. The site includes a getting-started guide, a modelling reference, an API reference, a list of shapes and extras, and a gallery of work made with Zdog. You can add it to a page with a script tag from unpkg, or install it with npm or Bower. Zdog is free and open source, and its code is on GitHub, where people can report issues.…
Highlights
- Simple 3D models drawn on canvas or SVG
- Round shapes rendered with smooth edges
- Declarative API for adding shapes
- Drag to rotate illustrations
- About 28KB minified
- Install by script tag, npm or Bower
Ratings & Reviews
No ratings yet
Be the first to rate Zdog.
People also visit
Flowchart.js
Draws simple SVG flow chart diagrams from textual representation of the diagram
Zdog FAQ
What is Zdog?
A pseudo-3D JavaScript engine for drawing simple 3D models on the web, using canvas or SVG.
Is Zdog really 3D?
The site calls it a pseudo-3D engine. Shapes live in 3D space and are rendered as flat shapes, so the result looks like vector illustration.
How do I install it?
Link the minified file from unpkg in a script tag, or install it with npm install zdog or bower install zdog.
Is it free?
Yes. Zdog is open source and the code is on GitHub.
How big is the library?
The site says the whole library is about 2,100 lines of code, or 28KB minified.
What are the best Zdog alternatives?
Popular alternatives to Zdog include DGM.js, Maker.js and Editor. See all Zdog alternatives





