1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

Base: Move all the HTML test content into /res/html/misc

This commit is contained in:
Andreas Kling 2020-06-17 17:28:18 +02:00
parent 4720635aab
commit de12cf6821
58 changed files with 1 additions and 1 deletions

View file

@ -1,42 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>canvas path example</title>
</head>
<body>
<canvas width=300 height=300></canvas>
<script>
function drawHouse() {
var ctx = document.querySelector("canvas").getContext("2d");
ctx.fillStyle = 'black';
ctx.fillRect(0, 0, 300, 300);
ctx.fillStyle = 'white';
ctx.strokeStyle = 'red';
// Set line width
ctx.lineWidth = 10;
// Wall
ctx.strokeRect(75, 140, 150, 110);
// Door
ctx.fillRect(130, 190, 40, 60);
// Roof
ctx.beginPath();
ctx.moveTo(50, 140);
ctx.lineTo(150, 60);
ctx.lineTo(250, 140);
ctx.closePath();
ctx.stroke();
}
drawHouse();
</script>
</body>
</html>