Initial commit

This commit is contained in:
Michael Reber
2019-11-15 12:59:38 +01:00
parent 40a414d210
commit b880c3ccde
6814 changed files with 379441 additions and 0 deletions
@@ -0,0 +1,30 @@
<html>
<head>
<title>canvas Object - Happy Codings :-) JavaScript Code Examples</title>
<script type="text/javascript">
function draw() {
var canvas = document.getElementById("chart");
if (canvas.getContext) {
var context = canvas.getContext("2d");
context.lineWidth = 20;
context.strokeStyle = "red";
context.beginPath();
context.moveTo(20, 90);
context.lineTo(20, 10);
context.stroke();
}
}
</script>
<style type="text/css">
canvas { border: 1px solid black; }
</style>
</head>
<body onload="draw();">
<h1>canvas Object</h1>
<hr />
<canvas id="chart" width="130" height="100"></canvas>
</body>
</html>