-
Notifications
You must be signed in to change notification settings - Fork 0
/
paperIndex.html
79 lines (78 loc) · 2.68 KB
/
paperIndex.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
<!DOCTYPE html>
<html>
<head>
<!-- Load the Paper.js library -->
<script type="text/javascript" src="js/paper.js"></script>
<!-- Load external PaperScript and associate it with myCanvas -->
<!-- <script type="text/paperscript" src="js/myScript.js" canvas="myCanvas">
-->
<script type="text/javascript" src="js/jsPaper.js"></script>
</script>
<script type="text/javascript" src="js/ui.js"></script>
<script type="text/javascript" src="js/palette.js"></script>
</head>
<style>
html,
body {
height: 100%;
}
canvas {
touch-action: none;
-webkit-user-select: none;
user-select: none
}
/* Scale canvas with resize attribute to full size */
body {
background-color:grey;
}
</style>
<div hidden="true">canvas[resize] {
width: 600px;
height: 600px;
}
canvas[palette] {
width: 100px;
height: 300px;
border: 1px;
border-color: black;
}</div>
<!--<body onload="init();canvasInit()">
-->
<body>
<canvas id="myCanvas" width="600" height="600" resize data-paper-hidpi="off"></canvas>
<canvas id="palette" width = "100" height = "600" palette style="border: 1px solid black"></canvas>
<div class="sizeContainer">
<div id="brushSizeIndicator">50</div>
<input type="range" min="1" max="100" value="50" class="slider" id="brushSize">
</div>
<div id="datareadout">0.05135370045900345 488 276</div>
<div id="datareadoutcolor"></div>
<div id="pickedColor">O</div>
<button id="saveButton">Save</button>
<button id="loadButton">Load</button>
<input type="file" id="fileElem" multiple="" accept="image/*" style="display:none">
<a href="#" id="fileSelect">Select some files</a>
<div id="fileList">
<p>No files selected!</p>
</div>
<div id="modeList">
<input type="radio" name="mode" id="polyfill" value="polyfill"*>
<label for="polyfill">PolyFill</label>
<input type="radio" name="mode" id="brush" value="brush">
<label for="brush">Brush</label>
<input type="radio" name="mode" id="picker" value="picker">
<label for="picker">Picker</label>
<input type="radio" name="mode" id="polygon" value="polygon">
<label for="picker">Polygon</label>
<input type="radio" name="mode" id="bezier" value="bezier">
<label for="picker">Bezier</label>
<input type="radio" name="mode" id="line" value="line">
<label for="picker">Line</label>
<input type="radio" name="mode" id="circle" value="circle">
<label for="picker">circle</label>
</div>
<div>
<input type="checkbox" name="adjustLastColor" id="adjustLastColor"><label for="adjustLastColor">Adjust Last Color</label>
</div>
</body>
</html>