restructured last chapters
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
#canvas1 {
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<canvas id="canvas1"></canvas>
|
||||
<script>
|
||||
var canvas = document.getElementById("canvas1");
|
||||
var ctx = canvas.getContext("2d");
|
||||
canvas.width = 100;
|
||||
canvas.height = 100;
|
||||
ctx.lineWidth = 2;
|
||||
ctx.moveTo(0, 20);
|
||||
ctx.lineTo(50, 100);
|
||||
ctx.stroke();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user