mirror of
https://github.com/andrewstephens75/as-dithered-image.git
synced 2026-04-22 16:19:30 -07:00
Delete that stupid example file
This commit is contained in:
32
index.html
32
index.html
@@ -1,32 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.canvasstyle {
|
|
||||||
display: inline-block;
|
|
||||||
width: 90%;
|
|
||||||
aspect-ratio: 640 / 954;
|
|
||||||
min-width: 90%;
|
|
||||||
padding: auto;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script src="as-dithered-image.js"></script>
|
|
||||||
<script>
|
|
||||||
window.addEventListener("load", (e) => {
|
|
||||||
const c = document.getElementById("pixel")
|
|
||||||
|
|
||||||
c.innerText = window.devicePixelRatio
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!-- <canvas id="drawing" class="canvasstyle" width="1024" height="768"></canvas> -->
|
|
||||||
<as-dithered-image src="monalisa.jpg" class="canvasstyle" crunch="1"></as-dithered-image>
|
|
||||||
<as-dithered-image src="monalisa.jpg" class="canvasstyle" crunch="2"></as-dithered-image>
|
|
||||||
<as-dithered-image src="monalisa.jpg" class="canvasstyle" crunch="pixel"></as-dithered-image>
|
|
||||||
The device pixel ratio = <span id="pixel"></span>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user