maaike's code samples
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user