зеркало из https://github.com/mozilla/gecko-dev.git
23 строки
445 B
HTML
23 строки
445 B
HTML
<html>
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<canvas id="canvas" width="300" height="300"></canvas>
|
|
<script type="application/javascript">
|
|
var canvas = document.getElementById("canvas");
|
|
var ctx = canvas.getContext("2d");
|
|
|
|
ctx.fillStyle = '#eeeeee';
|
|
ctx.strokeStyle = '#000000';
|
|
|
|
ctx.beginPath();
|
|
ctx.moveTo(0, 50);
|
|
ctx.lineTo(50, 50);
|
|
ctx.lineTo(150, 100);
|
|
|
|
ctx.stroke();
|
|
ctx.fill();
|
|
</script>
|
|
</body>
|
|
</html>
|