-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.html
106 lines (99 loc) · 4.3 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
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Fractal Generator</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="js/lightgl.min.js"></script>
<script src="js/jquery.mousewheel.js"></script>
<script src="js/jquery.simplespinner.js"></script>
<script src="js/ifs.js"></script>
<script src="js/ui.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<a href="https://github.com/sirxemic/ifs-animator" target="_blank"><img style="position: absolute; top: 0; left: 0; border: 0; z-index: 900" width="120" height="120" src="https://s3.amazonaws.com/github/ribbons/forkme_left_red_aa0000.png" alt="Fork me on GitHub"></a>
<div id="toolbar">
<h1>IFS Fractal Generator</h1>
<div id="file-options">
<button id="new-fractal" class="primary">New</button>
<button id="save-fractal">Save</button>
<button id="export-fractal">Export Image</button>
</div>
<div id="animation-options">
<div id="animation-speed">Animation speed:
<div class="simple-spinner" data-value="100" data-min-value="-500" data-max-value="500" data-step-size="1"></div>
</div>
<button id="animation-button" class="primary">Animate!</button>
</div>
</div>
<div id="fractal-container">
<div id="the-fractal">
</div>
<canvas id="fractal-ui">
</canvas>
</div>
<div class="sidebar-item">
<div class="sidebar-item-content">
<div>
Brightness: <div id="brightness" class="simple-spinner" data-value="100" data-min-value="70" data-max-value="300" data-step-size="1"></div>
</div>
<div>
<button id="item-add" type="button">Add frame</button>
</div>
</div>
</div>
<div id="item-editor" class="sidebar-item">
<header>Frame properties</header>
<div class="sidebar-item-content">
<div id="item-coeffs">
<div>
<label><span>a: </span><input id="coeff-a" type="text"></label>
<label><span>b: </span><input id="coeff-b" type="text"></label>
<label><span>e: </span><input id="coeff-e" type="text"></label>
</div>
<div>
<label><span>c: </span><input id="coeff-c" type="text"></label>
<label><span>d: </span><input id="coeff-d" type="text"></label>
<label><span>f: </span><input id="coeff-f" type="text"></label>
</div>
</div>
<div id="item-rotation-speed">
Rotation speed:
<div class="simple-spinner" data-value="100" data-min-value="-200" data-max-value="200" data-step-size="1"></div>
</div>
<div id="item-color">
<div>
Red:
<div id="spinner-red" class="simple-spinner" data-value="0" data-min-value="0" data-max-value="100" data-step-size="1"></div>
</div>
<div>
Green:
<div id="spinner-green" class="simple-spinner" data-value="0" data-min-value="0" data-max-value="100" data-step-size="1"></div>
</div>
<div>
Blue:
<div id="spinner-blue" class="simple-spinner" data-value="0" data-min-value="0" data-max-value="100" data-step-size="1"></div>
</div>
<div>
<button id="random-color" type="button">Random color</button>
</div>
</div>
<button id="item-delete" type="button">Delete frame</button>
</div>
</div>
<div id="extra" class="sidebar-item">
<div class="sidebar-item-content">
<button id="fit-to-screen" type="button">Fit to screen</button>
<button id="hq-fractal">Enable high quality fractals<br>(requires a decent graphics card)</button>
<button id="lq-fractal" style="display: none">Disable high quality fractals</button>
<button id="disable-flashes">I have epilepsy</button>
<button id="enable-flashes" style="display: none">I don't have epilepsy</button>
</div>
</div>
<div id="export-overlay" style="display: none">
<img>
</div>
</body>
</html>