SVG X
This is part of the SVG Tutorial and exercises drawing a line in SVG.
examples/js/svg_x.js
function draw_x() { var draw = SVG('draw_x'); draw.size(200, 200); draw.line(0, 0, 200,200).attr({ 'stroke' : '#FF0000', 'stroke-width' : '5px' }); draw.line(0, 200, 200,0).attr({ 'stroke' : '#FF0000', 'stroke-width' : '5px' }); } draw_x();
Published on 2015-12-24
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