-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathapp.html
112 lines (91 loc) · 4.41 KB
/
app.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
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
<!doctype html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M8NH66GQTX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-M8NH66GQTX');
</script>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Reaction-Diffusion Playground</title>
<meta name="description" content="Interactive simulation with organic patterns and behaviors emerging naturally from two chemicals as they are mixed together.">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Facebook OG -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://jasonwebb.github.io/reaction-diffusion-playground/">
<meta property="og:title" content="Reaction-Diffusion Playground">
<meta property="og:image" content="https://raw.githubusercontent.com/jasonwebb/reaction-diffusion-playground/master/images/social-media-preview.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="628">
<meta property="og:description" content="Interactive simulation with organic patterns and behaviors emerging naturally from two chemicals as they are mixed together.">
<meta property="og:locale" content="en_US">
<!-- Twitter card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@jasonwebb">
<meta name="twitter:title" content="Reaction-Diffusion Playground">
<meta name="twitter:description" content="Interactive simulation with organic patterns and behaviors emerging naturally from two chemicals as they are mixed together.">
<meta name="twitter:image" content="https://raw.githubusercontent.com/jasonwebb/reaction-diffusion-playground/master/images/social-media-preview.jpg">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/map-dialog.css">
<link rel="stylesheet" href="css/corner-links.css">
<link rel="stylesheet" href="css/stats.css">
<link rel="stylesheet" href="css/effects-panel.css">
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
background: radial-gradient(circle, rgb(10,10,10) 20%, rgb(20,20,20) 100%);
}
.tp-dfwv { width: 350px !important; }
.tp-lblv_v { width: 250px !important; }
canvas { display: block; }
</style>
</head>
<body>
<!-- Container that the main ThreeJS canvas gets injected into. -->
<div id="container"></div>
<!-- Dialog popup containing parameter map. Bring it up using the "Pick parameter values from map" button on the right pane. -->
<div id="map-dialog" role="dialog" aria-modal="true" aria-label="Parameter map">
<div class="inner-panel">
<div class="title">Click anywhere on the map to set feed and kill rate values</div>
<button class="close-button" title="Close">
<span class="fa fa-times" aria-hidden="true"></span>
<span class="sr-only">Close</span>
</button>
<div class="image-container">
<img src="./images/karl-sims-parameter-map.png" alt="">
</div>
</div>
</div>
<!-- Github and other links in the bottom left corner. -->
<div class="corner-links">
<a href="https://github.com/jasonwebb/reaction-diffusion-playground" target="_blank" class="github-link" title="Github repo">
<span class="fa fa-github" aria-hidden="true"></span>
<span class="sr-only">Github repo</span>
</a>
<!-- <a href="#" class="about-link">What is this?</a> -->
<!-- <a href="#" class="credits-link">Credits</a> -->
</div>
<!-- Hidden canvas and image used to copy image pixel data into the main canvas. -->
<canvas id="buffer-canvas" style="display: none;"></canvas>
<img id="buffer-image" style="display: none;">
<!-- Visually-hidden file chooser used to load a local image for use as a style map. -->
<input type="file" id="style-map-chooser" accept="image/*" class="sr-only">
<!-- Visually-hidden file chooser for loading custom seed image. -->
<input type="file" id="seed-image-chooser" accept="image/*" class="sr-only">
<script src="dist/main.bundle.js"></script>
</body>
</html>