evhan55 / ploma

Ploma: High-fidelity ballpoint pen rendering for pressure sensitive tablets
http://plomaproject.tumblr.com
98 stars 11 forks source link

Moved rendering functionality in ploma.js to have it available as a plugin #6

Closed athomschke closed 9 years ago

athomschke commented 9 years ago

created Ploma module object in ploma.js and moved initialization to init.js. Ploma encapsulates Sketcher prototypes - to create an object that renders stroke arrays, create a Ploma.Sketcher instance with parameters canvas, textureCanvas1 and textureCanvas2. A sketcher instance provides and interface with addPoint, beginStroke and finishStroke and has public values strokes (Array) and curStroke, both the filtered version of points/strokes.

evhan55 commented 9 years ago

Ok, I am going to merge it and we can address the questions and my new changes on top of your changes in these comments I left or via email! Thank you very much! :+1: