アットウィキロゴ

vg6543

<html>
<head>
<title>canvas</title>
<script type="text/javascript">
function sample() {
 
var canvas = document.getElementById('samplex');
 
var ctx = canvas.getContext('2d');
 
ctx.beginPath();
ctx.moveTo(10,10);
ctx.lineTo(10,100);
ctx.lineTo(100,100);
ctx.stroke();
 
}
</script>
</head>
<body onLoad="sample()">
<canvas id="samplex">
</canvas>
</body>
</html>
最終更新:2013年09月17日 18:27