blob: 5998f9dbfb93b3c9a6c4baf38ad7a93901b56a6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!DOCTYPE html>
<html>
<head>
<script>
document.addEventListener('DOMContentLoaded', () => {
const canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas')
const context = canvas.getContext('2d')
const pattern = context.createPattern(canvas, 'no-repeat')
context.fillStyle = pattern
pattern.setTransform({
'c': 1.510601806598101,
'd': 0,
})
context.fillRect(1024, 512, 32, 32767)
})
</script>
</head>
</html>
|