html
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
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<canvas id="letter" width="100px" height="50px" style="border:2px,solid,#F5F5DC;">
<canvas id="myCanvas" style="border:1px, solid, #000000"></canvas>
<style>
#letter {
position:relative;
left:145px;
top:200px;
}
#myCanvas{
position:relative;
left:145px;
top:200px;
}
</style>
<script>
let canvas=document.getElementById("letter");
let ctx=canvas.getContext("2d");
ctx.fillStyle="white";
ctx.fillRect(0,0,100,100);
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run