-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
35 lines (27 loc) · 1.15 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ascii-image</title>
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script type="module">
import '/ascii-image.js'
</script>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
</style>
</head>
<body>
<h1><ascii-image> demo</h1>
<p><ascii-image> is like the <img> tag, but it renders the image as ASCII characters.</p>
<p>It accepts a width attribute so you can define the number of columns:</p>
<pre><ascii-image src="grumpy.jpg" columns="60"></ascii-image></pre>
<ascii-image src="/demo/grumpy.jpg" columns="60"></ascii-image>
<p>Don't use this to save data because you're still loading the original image.</p>
<img src="/demo/grumpy.jpg">
<p>If you don't specify the number of columns, it will default to 80 columns.</p>
<ascii-image src="/demo/all-the-things.png"></ascii-image>
</body>
</html>