javascript - How to add outline to the active text in Fabric.js -


i have used canvas in html5 using fabric js . want apply outlines active text on canvas. following code have written working fine problem when increase thickness of outline overlaps on text means text color disappears.

activeobject1.stroke = color; activeobject1.strokewidth = 5; 

and 1 more thing applying unable apply 2nd outline. got 1 example not working fabricjs.

http://jsfiddle.net/vnwn6/ 

var active_obj = canvas.getactiveobject(); active_obj.stroke = '#000'; active_obj.strokewidth = 5; canvas.renderall(); 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -