How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
teespring.engineering
How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
1–10 of 22 posts
Re: How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
#2Re: How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
#3Re: How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
#4Very cool, Justin. It would be amazing if you guys open-sourced a Raphael.js killer.
Re: How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
#5Re: How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
#6Very cool, Justin. It would be amazing if you guys open-sourced a Raphael.js killer.
Thank you Mark! We were actually originally using Raphael but recently switched to something custom. We got a lot more performance for our use case. I would love to open source that code at some point.
Re: How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
#7Why is it that they use a png to show the svg? Why not just render the svg?
Re: How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
#8Re: How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
#9Earlier quoted context omitted.
Thank you Mark! We were actually originally using Raphael but recently switched to something custom. We got a lot more performance for our use case. I would love to open source that code at some point.
Any specific reason to not use snapsvg?
That said we played around with Snapsvg, and it is great if you're lucky like us and don't have to support IE6.
Re: How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
#101. Dragging the pattern around (note the deforming):
https://preview.unmade.com/knitwear/jumpers/studio-moross/kn...
and
https://preview.unmade.com/knitwear/scarves/studio-moross/pa...
2. Modifying the pattern with some physics:
https://preview.unmade.com/knitwear/scarves/moniker/pied-de-...