-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvm-01.html
37 lines (37 loc) · 863 Bytes
/
vm-01.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<head>
<title>01: Vera Molnar</title>
<style>
body {
width: 100vw;
height: 100vh;
font-family: Helvetica, Arial, sans-serif;
background-color: white;
color: black;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
canvas {
border: 1px solid black;
}
</style>
</head>
<body>
01: Vera Molnar
<canvas width="500" height="500"></canvas>
</body>
<script>
var canvas = document.querySelector('canvas');
var context = canvas.getContext('2d');
context.strokeStyle = "black";
context.beginPath();
context.moveTo(10,10);
context.lineTo(100,10);
context.lineTo(100,100);
context.lineTo(10,100);
context.lineTo(10,10);
context.stroke();
</script>
</html>