Initial work on html player

This commit is contained in:
Skyler Lehmkuhl
2024-12-30 01:54:47 -05:00
parent b95e585ce5
commit d02b487649
2 changed files with 93 additions and 35 deletions
+25
View File
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<script>
const _file = "${file}"
function _render() {
requestAnimationFrame(_render)
}
function __setup__() {
const cvs = document.getElementById("cvs")
cvs.width = _file.fileWidth
cvs.height = _file.fileHeight
cvs.style.width = `${_file.fileWidth}px`
cvs.style.height = `${_file.fileHeight}px`
_render()
}
</script>
</head>
<body>
<canvas id="cvs"></canvas>
<script>__setup__()</script>
</body>
</html>