mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
05f4d55e08
I didn't realize Sizes could be negative when originally writing this code.
22 lines
521 B
HTML
22 lines
521 B
HTML
<html>
|
|
<head>
|
|
<title></title>
|
|
<script type="text/javascript">
|
|
function go() {
|
|
var canvas = document.createElement("canvas");
|
|
var ctx = canvas.getContext('2d');
|
|
ctx.globalAlpha = 4
|
|
ctx.lineCap = "foo"
|
|
ctx.strokeRect(256,1024,8,4)
|
|
ctx.shadowColor = "black"
|
|
ctx.shadowOffsetY = 64
|
|
ctx.stroke()
|
|
ctx.moveTo(32,1024)
|
|
ctx.closePath()
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="go()">
|
|
<canvas id="canvas"></canvas>
|
|
</body>
|
|
</html> |