-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditor.html
44 lines (44 loc) · 1.58 KB
/
editor.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Image Editor - Imagery</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script>
<link rel="stylesheet" href="style.css" />
<script src="editor.js" defer></script>
</head>
<body>
<h1>Image Editor</h1>
<main class="hidden"></main>
<div id="load">
<p>Load Image:</p>
<input type="text" id="file" placeholder="image link" />
<button onclick="imageLoaded()">Load</button>
</div>
<div id="content" class="hidden">
<div id="editor-shapes" class="flex">
<button class="shape" data-shape="circle">Circle</button>
<button class="shape" data-shape="square">Square</button>
<button class="shape" data-shape="rect">Rectangle</button>
<button class="shape" data-shape="line">Line</button>
<button class="shape" data-shape="coolerline">
Cooler Line
</button>
<button class="shape" data-shape="eraser">Eraser</button>
</div>
<div id="editor-metadata" class="flex">
<input type="text" id="m-size" placeholder="size" />
<input type="text" id="m-height" placeholder="height" />
</div>
<div id="editor-color" class="flex">
<p>Color 1:</p>
<input type="color" id="col1" /><br /><br />
<span>Color 2:<input type="color" id="col2" /></span>
</div>
<button onclick="reset()">Reset</button>
<button onclick="saveImage()">Save</button>
</div>
</body>
</html>