-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (67 loc) · 1.74 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>HIF Example</title>
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
<style>
body {
padding: 2em;
}
.grid {
display: grid;
grid-template-columns: auto auto;
grid-template-rows: auto;
}
section {
padding: 10px;
}
section {
margin: 0 auto;
}
@media screen and (max-width: 576px) {
.grid {
grid-template-columns: auto;
}
}
</style>
</head>
<body>
<h2>HIF - Hraphics Interchange Format</h2>
<h3>Specification</h3>
<pre><code>0xDE 0xAD 0xFA 0xCE
0x[W1] 0x[W2] 0x[H1] 0x[H2]
[data, LZMA compressed]</code></pre>
<h3>Why?</h3>
<p>Why not?</p>
<h3>Projects</h3>
<ul>
<li><a href="https://github.com/hrishi045/hifviewer">HIF Viewer</a></li>
<li><a href="https://github.com/hrishi045/hif">HIF Canvas Renderer</a></li>
<li><a href="https://github.com/hrishi045/png2hif">PNG to HIF converter</a></li>
</ul>
<h3>Comparison:</h3>
<div class="grid">
<section>
<p>HIF (11K):</p>
<hif path="potato.hif"></hif>
</section>
<section>
<p>PNG (2.5K):</p>
<img src="potato.png" alt="">
</section>
<section>
<p>GIF (33K):</p>
<img src="potato.gif" alt="">
</section>
<section>
<p>JPG (8.5K):</p>
<img src="potato.jpg" alt="">
</section>
</div>
<script src="lzma-d-min.js"></script>
<script src="display.js"></script>
</body>
</html>