transparent-cube

Minimal cross-platform native/wasm graphics example.
git clone git://git.amin.space/transparent-cube.git
Log | Files | Refs | README | LICENSE

platform_wasm_index.html (344B)


      1 <!DOCTYPE html>
      2 <title>Transparent Cube</title>
      3 <meta name=viewport content='width=device-width,initial-scale=1' charset='utf-8'>
      4 <style>
      5 body, html {
      6     height: 100%;
      7     margin: 0;
      8     overflow: hidden;
      9 }
     10 #webglcanvas {
     11     width: 100vw;
     12     height: 100vh;
     13 }
     14 </style>
     15 <canvas id=webglcanvas></canvas>
     16 <script src='script.js' defer></script>