pixelworks
Version:
Utilities for working with ImageData in Workers
32 lines (31 loc) • 632 B
HTML
<head>
<title>Pixel Operations</title>
<style>
#frame {
position: relative;
height: 256px;
width: 256px;
}
#input {
position: absolute;
top: 0;
left: 0;
}
#output {
position: absolute;
top: 0;
left: 0;
}
</style>
</head>
<body>
<div id="frame">
<canvas id="input" width="256" height="256"></canvas>
<canvas id="output" width="256" height="256"></canvas>
</div>
<br>
<input id="threshold" type="range" min="0" max="255">
<script src="../dist/pixelworks.js"></script>
<script src="operations.js"></script>
</body>