Simplified code

This commit is contained in:
Andrew Stephens
2023-01-01 19:28:01 -05:00
parent c230ce5d51
commit db859c9134
4 changed files with 348 additions and 125 deletions

26
test.html Normal file
View File

@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<script src="as-dithered-image.js"></script>
<style>
.setSize {
width: 80%;
min-width: 80%;
}
</style>
<as-dithered-image class="setSize" src="Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg"></as-dithered-image>
<p>devicePixelRatio = <span id=dpr>0</span></p>
</body>
<script>
document.getElementById("dpr").innerText = window.devicePixelRatio
</script>
</html>