mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
29 lines
464 B
HTML
29 lines
464 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
<canvas id="c" width="150" height="150" >
|
|
Your browser does not support the HTML5 canvas tag.</canvas>
|
|
|
|
<script>
|
|
var c = document.getElementById("c");
|
|
var ctx = c.getContext("2d");
|
|
|
|
ctx.beginPath();
|
|
ctx.moveTo(20, 20);
|
|
ctx.lineTo(20, 130);
|
|
ctx.lineTo(130, 130);
|
|
ctx.lineTo(130, 20);
|
|
ctx.closePath();
|
|
|
|
ctx.fillStyle = '#90EE90';
|
|
ctx.fill();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|