-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
141 lines (131 loc) · 6.84 KB
/
index.html
File metadata and controls
141 lines (131 loc) · 6.84 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IsomerHeightMap</title>
<meta name="description" content="Create isometric heightmaps from images using jdan's excellent Isomer library.">
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css">
<link rel="stylesheet" href="./page/css/styles.css">
<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="layout">
<!-- Menu toggle -->
<a href="#menu" id="menuLink" class="menu-link">
<!-- Hamburger icon -->
<span></span>
</a>
<!-- sidebar -->
<div id="menu" class="nav">
<div class="pure-menu pure-menu-open">
<section>
<h1 class="section top">IsomerHeightMap</h1>
<div id="ImageSourcePreview" class="section enhanced">
Image Source
</div>
</section>
<section>
<form id="IsomerHeightMapControls" class="pure-form">
<section>
<div class="section text-center cta">
<label class="file-button pure-button pure-button-primary" for="IHM-Controls-image">
<input id="IHM-Controls-image" class="upload" type="file" />
Pick new image
</label>
</div>
</section>
<div class="accordion">
<h2 class="accordion-hl enhanced section">Effects</h2>
<div class="accordion-content section">
<p>
<input type="checkbox" id="IHM-Filter-invert" value="" />
<label for="IHM-Filter-invert">Invert Mapping</label>
</p>
<p>
<input type="checkbox" id="IHM-Filter-greyscale" value="" />
<label for="IHM-Filter-greyscale">Greyscale</label>
</p>
</div>
</div>
<div class="accordion">
<h2 class="accordion-hl enhanced section">Shapes</h2>
<div class="accordion-content section">
<p id="IHM-Filter-shape">
<button class="pure-button" value="Prism"><span class="shape Prism"></span>Prism</button>
<button class="pure-button" value="Cylinder"><span class="shape Cylinder"></span>Cylinder</button>
<button class="pure-button" value="Pyramid"><span class="shape Pyramid"></span>Pyramid</button>
</p>
<p>
<label for="IHM-Filter-unit">Tile density</label>
<br>
<input id="IHM-Filter-unit" type="range" min="5" max="35" />
</p>
</div>
</div>
<div class="accordion">
<h2 class="accordion-hl enhanced section">Scale</h2>
<div class="accordion-content section">
<p>
<label for="IHM-Filter-gap">Gaps</label>
<br>
<input id="IHM-Filter-gap" type="range" min="0" max="100" />
</p>
<p>
<label for="IHM-Filter-yScale">Scale Height</label>
<br>
<input id="IHM-Filter-yScale" type="range" min="20" max="500" />
</p>
<p>
<label for="IHM-Filter-scale">Scale All</label>
<br>
<input id="IHM-Filter-scale" type="range" min="1" max="50" />
</p>
</div>
</div>
<div>
<p class="text-right section">
<a class="btn-sm" href="#" id="IHM-Filter-reset">Reset to defaults</a>
</p>
</div>
</form>
</section>
</div>
</div>
<!-- main -->
<div id="main">
<!-- header -->
<a class="href-github pure-button" href="https://github.com/RoboSparrow/IsomerHeightMap"><img class="github-logo" src="./page/images/octocat.logo.png" alt="Mark" > Get Source</a>
<!-- main content -->
<div class="content">
<p>
<strong>What is this?</strong> Create isometric heightmaps from images using jdan's excellent <strong><a href="https://github.com/jdan/isomer" target="_blank">Isomer library.</a></strong>
<br><strong>How?</strong> Pick an image (left) and have a play with the options (left).
</p>
<!-- wrapper for offCanvas, in case you want to show it -->
<div id="offCanvas"></div>
<!-- IsomerHeightMap canvas -->
<canvas id="IsomerHeightMap"></canvas>
<p>
<strong>Why?</strong> Wrong question. Go away.
<br><strong>Can I hack it?</strong> Sure, Get the source from <a href="https://github.com/RoboSparrow/IsomerHeightMap">Github</a>. License is MIT.
</p>
</div>
</div>
</div>
<!-- Scipts -->
<script src="./page/js/utils.js"></script>
<script src="./vendor/isomer.min.js"></script>
<script src="./isomer-heigthmap.js"></script>
<script src="./page/js/isomer-heigthmap.controls.js"></script>
<!-- GA -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-831210-5', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>