meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

Use caman for embroidery previews? #63

Open balupton opened 11 years ago

balupton commented 11 years ago

Not sure if caman is the right project for this, but it sure would be nice to be able to have the ability for embroidery preview.

Interactive example is here: http://www.vistaprint.com.au/vp/ns/easypath/studio.aspx?pf_id=AFD&combo_id=457407&combo=276980.142.1.244654%7c244654%7c137%7c0&uei=359859&ag=true&ssc=1&filter=9%3a10013%7c%7c1%2c59%3a10230%7c%7c1%2c3%3a10232%7c%7c1&xnav=previews&xnid=button&rd=2&ref=1&referer=http%3a%2f%2fwww.vistaprint.com.au%2fgallery.aspx%3fpg%3d112%26xnav%3dTsrItem%26xnav%3dTsrButton_01

So we can have an image or some text drawn with canvas, then utilise caman or whatever project to apply an embroidery filter to the image.

Is caman the right project for this? If so, how would we go about making that happen? Otherwise, any idea where else I should be looking?

meltingice commented 11 years ago

That's a bit of a unique problem to solve. You might be better off using something like paper.js. You could create an image for each different letter and much more easily add/position them on the canvas. Perhaps you could use CamanJS afterwards to colorize the letters.