Would you help me with the code problem listed below: I would like to draw and p
ID: 3621228 • Letter: W
Question
Would you help me with the code problem listed below:
I would like to draw and print out a 19 x 19 go board in svg using Javascript loops and functions. The code needs additional work to get it up and running. I would appreciate any help. Thanks!
=======================================================================
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<script type="text/javascript">
<svg width="751" height="821" version="1.1" xmlns="http://www.w3.org/2000/svg"/>
function rect(x, y, w, h, s) {
document.write("<rect x='" + x + ' y= '" + y + ' width= '" + w +
' height=' + h + ' ';
}
}
}
for (x =0; x <size*19; x+=size) {
rect(x, 0, 30, 570, "fill:#CC9900");
document.write("</svg>");
}
]]>-->
</script>
</svg>
Explanation / Answer
Use the mentioned link for your help: www.w3schools.com
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.