/ Published in: HTML
Expand |
Embed | Plain Text
<!DOCTYPE HTML> <html> <body> <canvas id="mongol_ger" width="200" height="150" style="border:1px solid #c3c3c3;"> Your browser does not support the canvas element. </canvas> <script type="text/javascript"> var ger=document.getElementById("mongol_ger"); //gerrin undsen tegsh untsugt hesgiig haruulah var suuri=ger.getContext("2d"); suuri.moveTo(20,70); suuri.lineTo(180,70); suuri.lineTo(180,130); suuri.lineTo(20,130); suuri.lineTo(20,70); suuri.stroke(); //haalga nemeh var gate=ger.getContext("2d"); gate.moveTo(75,130); gate.lineTo(75,70); gate.lineTo(125,70); gate.lineTo(125,130); gate.stroke(); //burees nemeh var burees=ger.getContext("2d"); burees.moveTo(20,90); burees.lineTo(75,90); burees.moveTo(20,110); burees.lineTo(75,110); burees.moveTo(125,90); burees.lineTo(180,90); burees.moveTo(125,110); burees.lineTo(180,110); burees.stroke(); //uni nemeh var uni = ger.getContext("2d"); uni.moveTo(20,70); uni.lineTo(75,35); uni.moveTo(180,70); uni.lineTo(125,35); uni.stroke(); // toono nemeh var toono = ger.getContext("2d"); toono.beginPath(); toono.arc(100, 71, 45, 1.30 * Math.PI, 1.70 * Math.PI, false); toono.lineWidth = 1; toono.stroke(); //toono dood hesgiig nemeh var toono_d = ger.getContext("2d"); toono_d.beginPath(); toono_d.arc(100, 11, 35, 0.75 * Math.PI, 0.25 * Math.PI, true); toono_d.lineWidth = 1; toono_d.stroke(); </script> </body> </html>
You need to login to post a comment.
