22 lines
434 B
HTML
Executable File
22 lines
434 B
HTML
Executable File
<html>
|
|
<head>
|
|
<style>
|
|
#canvas1 {
|
|
border: 1px solid black;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<canvas id="canvas1"></canvas>
|
|
<script>
|
|
let canvas = document.getElementById("canvas1");
|
|
let ctx = canvas.getContext("2d");
|
|
canvas.width = 150;
|
|
canvas.height = 200;
|
|
ctx.beginPath();
|
|
ctx.arc(75, 100, 50, 0, 2 * Math.PI);
|
|
ctx.stroke();
|
|
</script>
|
|
</body>
|
|
</html>
|