26 lines
535 B
HTML
26 lines
535 B
HTML
<html>
|
|
<head>
|
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
|
|
</head>
|
|
<body>
|
|
<script type="module">
|
|
import init from "./pkg/circle_canvas.js";
|
|
|
|
async function run() {
|
|
await init();
|
|
}
|
|
|
|
run();
|
|
</script>
|
|
<style>
|
|
#circle_canvas{
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
</style>
|
|
<canvas id="circle_canvas" height="800" width="800"></canvas>
|
|
</body>
|
|
</html>
|
|
|