-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (56 loc) · 1.69 KB
/
Copy pathindex.html
File metadata and controls
56 lines (56 loc) · 1.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdn.jsdelivr.net/npm/p5@1.4.2/lib/p5.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta charset="utf-8" />
</head>
<body>
<p>ASCII Art</p>
<div id="sketch-holder">
<!-- Our sketch will go here! -->
</div>
<!-- <form> -->
<p>Color options</p>
<input
type="radio"
id="greyscale"
name="colorrange"
value="GREYSCALE"
checked
/>
<label for="greyscale">Grey scale</label><br />
<input type="radio" id="color" name="colorrange" value="COLOR" />
<label for="colorrange">Color</label><br />
<p>Color mode</p>
<input
type="radio"
id="forward"
name="invertcolors"
value="forward"
checked
/>
<label for="greyscale">Normal</label><br />
<input type="radio" id="backward" name="invertcolors" value="backward" />
<label for="colorrange">Inverted</label><br />
</p>
<label for="size">Choose a size</label>
<select id="size" name="size" width="128">
<option default value="32">32x32</option>
<option value="64">64x64</option>
<option value="128">128x128</option>
<option value="256">256x256</option>
</select>
</p>
<label for="blacklevel">Black level</label>
<input type="range" id="blacklevel" name="blacklevel" min="0" max="32" step="1" value="0" width="150"/>
</p>
<input type="file" name="theFile" id="theFile" />
<button id="btn">Generate</button>
<br />
<p>HTML code:</p>
<textarea id="htmlcode" name="htmlcode" rows="32" cols="256"></textarea>
<!-- </form> -->
<script src="sketch.js"></script>
</body>
</html>