about summary refs log blame commit diff stats
path: root/js/dither/index.html
blob: fc06402e2cc9affa3dc7d9da02c8d4a3edb5a036 (plain) (tree)




































                                                                          
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Floyd-Steinberg Dithering</title>
    <style>
        body {
            margin: 0 auto;
            display: block;
            padding: 2em;
         }
        canvas, input, button {
            max-width: 100%;
            padding: 1em;
            margin: 0 auto;
            display: block;
            border: 1px solid black;
        }
        button, input[type="file"] {
            cursor: pointer;
            padding: 1em 2em;
            font-size: 1.25em;
        }
    </style>
</head>
<body>
    <canvas id="canvas"></canvas>
    <br>
    <br>
    <input type="file" id="upload" accept="image/*">
    <br>
    <br>
    <button id="download">Download Image</button>
    <script src="dither.js"></script>
</body>
</html>