metafizzy / zdog

Flat, round, designer-friendly pseudo-3D engine for canvas & SVG
https://zzz.dog
10.38k stars 394 forks source link

Adding support for textures #105

Open sunnygoyal opened 3 years ago

sunnygoyal commented 3 years ago

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

webocs commented 3 years ago

This is interesting, I like it.. I'm not sure if anybody is merging PRs anymore tho..

Here's there rendered version of the demo if anybody wants to have a quick peek

https://htmlpreview.github.io/?https://github.com/metafizzy/zdog/blob/0a91d78df8b5653d2c5d36793b22b7bc10c7f7f0/demos/textures/index.html

sunnygoyal commented 3 years ago

Opps, forgot to host the repo. Demo link: http://sunnygoyal.com/zdog/demos/textures/ in case the above link is not working

turbo commented 3 years ago

Woooh, awesome. Thanks for implementing this :)

desandro commented 3 years ago

Excellent work! Thanks so much for this work here. I'll be evaluating this when I revisit Zdog in the future.

dicash commented 1 month ago

@desandro any luck? Just wanted to ping