zdog
zdog copied to clipboard
Flat, round, designer-friendly pseudo-3D engine for canvas & SVG
In other languages, if I wanted to draw a star, say, I'd have something like this: ``` startShape(); for (i = 0; i < numPoints; i++) { angleR = TAU/numPoints...
I draw a line with Shape, I want to change it with the time, how do I do? I've try: ` let s=new Zdog.Shape({ addTo: illo, path: [ // triangle...
**Test case:** https://codepen.io/coehill/pen/OJRGavP When a cylinder is created that has _fill: false_, there is a line across the centre. It can be removed by setting the color to be the...
Adding texture support for flat surfaces (rects, boxes, front/back face of cylinder...) Textures can be images or linear/radial gradients https://github.com/metafizzy/zdog/issues/38
Bug: If you set the 'backface' or 'length' properties of a Cylinder after render, it will not update. Same with Box object. I suspect the other derived shapes may have...
Sorry if this is a dumb question, and I browsed the source code and it looks pretty small and tight already. But would a WASM build of zdog make it...
What do you think guys about migrating **Zdog** codebase to **ES8**/**TypeScript**? 💪 It will improve coding time and let new people that want to contribute this project an easier start...
Hi! :slightly_smiling_face: This Pr simplifies code contributions and reviews by fully automating the dev setup with Gitpod(a free online VS Code like IDE). With a single click, it'll launch a...
To avoid call stack overflow when the graph has a large nesting depth. For example: ```javascript let illo = new Zdog.Illustration({ element: '.canvas' }); let parent = illo; for (let...
![truncated cone test](https://user-images.githubusercontent.com/32841526/60294524-92434a80-98ef-11e9-91c4-9bae5d60d815.png) This pull request adds a truncated-cone-with-spherical-caps Shape, to which I've given the slightly easier to type name Horn. It is much like a Cone or a Cylinder...