UNPKG

ncc

Version:

node-chrome-canvas | a simple to use and performant HTML5 canvas for Node.js

39 lines (34 loc) 864 B
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ncc</title> <link rel="icon" type="image/x-icon" href="ncc.ico" /> <style> html, body { padding: 0; margin: 0; width:100%; height:100%; } body { background-image: url('stripe.png'); } canvas { background: #fff; position: fixed; margin: auto; top: -9999px; left: -9999px; bottom: -9999px; right: -9999px; } </style> </head> <body> <canvas id="canvas"></canvas> <script> var canvas = document.getElementById('canvas'); </script> </body> </html>