-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (90 loc) · 3.88 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.5.0.min.js"
integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
<script src="https://mdn.github.io/webgl-examples/tutorial/gl-matrix.js"></script>
<script type="text/javascript" src="./js/main.js"></script>
<script type="text/javascript" src="./js/parameter.js"></script>
<script type="text/javascript" src="./js/presets.js"></script>
<link rel="stylesheet" href="./css/main.css">
<title>CodeArt</title>
</head>
<body>
<div class="horizontal-container">
<canvas id="main-img" width="512" height="512"></canvas>
<div class="vertical-container" id="settings">
<h3>Settings</h3>
<div class="horizontal-container">
<label>Preset</label>
<select id="presets">
</select>
</div>
<div class="horizontal-container">
<label>Mode</label>
<select id="modes">
</select>
</div>
<div class="horizontal-container">
<label for="width-setting">Width </label>
<input name="width" type="number" id="width-input" min="64" max="1024">
</div>
<div class="horizontal-container">
<label for="height-setting">Height</label>
<input name="height" type="number" id="height-input" min="64" max="1024">
</div>
<div class="vertical-container">
<button class="btn" id="resize-btn">Resize</button>
<div class="horizontal-container" id="load-save-container">
<button class="btn" id="upload-btn">Upload</button>
<input type="file" value="Upload" id="upload-file-input">
<button class="btn" id="save-btn">Save</button>
</div>
</div>
</div>
</div>
<br />
<div id="notice-container" class="center">
<span class="notice" id="notice"></span>
</div>
<br />
<div class="vertical-container" id="main-code-block-container">
<div class="horizontal-container">
<div class="code-block">
<div class="code-block-text">red(i, j, width, height, globals) {</div>
<textarea class="code-block-textarea" id="red-textarea"></textarea>
<div class="code-block-text">}</div>
</div>
<div class="code-block">
<div class="code-block-text">green(i, j, width, height, globals) {</div>
<textarea class="code-block-textarea" id="green-textarea"></textarea>
<div class="code-block-text">}</div>
</div>
</div>
<div class="horizontal-container">
<div class="code-block">
<div class="code-block-text">blue(i, j, width, height, globals) {</div>
<textarea class="code-block-textarea" id="blue-textarea"></textarea>
<div class="code-block-text">}</div>
</div>
<div class="code-block">
<div class="code-block-text">alpha(i, j, width, height, globals) {</div>
<textarea class="code-block-textarea" id="alpha-textarea"></textarea>
<div class="code-block-text">}</div>
</div>
</div>
</div>
<br />
<div class="horizontal-container">
<button type="button" id="clear-btn" class="btn" value="Clear">Clear</button>
<button type="button" id="color-btn" class="btn" value="Draw">Draw</button>
</div>
<div id="parameters-container">
<h3>Parameters</h3>
<div id="parameter-list">
<!-- PARAMETERS WILL BE ADDED HERE -->
</div>
<button class="btn" id="add-parameter-btn">Add</button>
</div>
</body>
</html>