SVG Line
This is part of the SVG Tutorial and exercises drawing a line in SVG.
examples/js/svg_line.js
function draw_line() { var draw = SVG('line_1'); draw.size(200, 100); draw.line(0, 0, 100, 70).attr({ 'stroke' : '#FF0000', 'stroke-width' : '3px' }); } draw_line();
Published on 2015-02-22
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post