Any suggestion for a JavaScript interactive drawing library? Just need to draw lines, polygons, texts of different colors. IE/Firefox/Opera/Safari compatible.
Paper. js — The Swiss Army Knife of Vector Graphics Scripting. Paper. js is an open source vector graphics scripting framework that runs on top of the HTML5 Canvas.
Steps for drawing a line in JavaScript First, create a new line by calling the beginPath() method. Second, move the drawing cursor to the point (x,y) without drawing a line by calling the moveTo(x, y) . Finally, draw a line from the previous point to the point (x,y) by calling the lineTo(x,y) method.
Raphael is pretty cool for that, and works across browsers since it uses VML (for MSIE) and SVG (for everything else).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With