This commit is contained in:
louiscklaw
2025-02-01 01:58:47 +08:00
parent b3da7aaef5
commit 04dbefcbaf
1259 changed files with 280657 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Lab10 Task 2b</title>
</head>
<script>
function draw(){
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
ctx.beginPath();
ctx.moveTo(55,55);
ctx.lineTo(5,5);
ctx.lineTo(5,105);
ctx.lineTo(55,55);
ctx.moveTo(205,55);
ctx.arc(155,55, 50, 0, 360);
ctx.strokeStyle = 'black';
ctx.stroke();
}
</script>
<body onLoad="draw()">
<canvas id="canvas" width="300" height="300">
</canvas>
</body>
</html>