-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (120 loc) · 6.94 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="shortcut icon" type="image/png" href="favicon.png">
<title>Stoner</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<link rel="stylesheet/less" type="text/css" href="stoner.less" />
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/3.0.2/less.min.js" ></script>
<script src="//kit.fontawesome.com/cdac6e394b.js" crossorigin="anonymous"></script>
</head>
<body>
<div id="wrapper">
<div id="container">
<div class="img">
<div class="instructions">
Drag image here from your computer.<br><br>
–or–<br><br>
Hit cmd/ctrl-v to paste image data<br>
or image URL.
</div>
<div id="bothimages">
<img id="original" src="https://i.imgur.com/F6Qyi.jpeg"/>
<img id="filtered" src="https://i.imgur.com/F6Qyi.jpeg"/>
</div>
<div class="gridi"></div>
</div>
<div class="pt tl"></div>
<div class="pt tr"></div>
<div class="pt bl"></div>
<div class="pt br"></div>
</div>
</div>
<div class="controls">
<div class="settings">
<div class="left col">
<div class="action-buttons">
<div class="big">
<div class="b fullscreen"><i class="fas fa-expand"></i></div>
<div class="b toggle"><i class="fas fa-play"></i></div>
</div>
</div>
<div class="title">Fade durations</div>
<div>Fade<input id="fade" type="number" value="0.1" step="0.1" /></div>
<div>Img on<input id="fade_on" type="number" value="1" step="0.1"/></div>
<div>Img off<input id="fade_off" type="number" value="2" step="0.1"/></div>
<hr>
<div class="checkboxes">
<div><input type="checkbox" id="show_image" checked /> <label for="show_image">Image</label></div>
<div><input type="checkbox" id="show_grid" /> <label for="show_grid">Grid</label></div>
<div><input type="checkbox" id="grayscale" /> <label for="grayscale">Grayscale</label></div>
<div><input type="checkbox" id="invert" /> <label for="invert">Invert</label></div>
<div class="be"><input type="checkbox" id="palette" /> <label for="palette">Indicative palette</label></div>
<div class="be disabled"><input type="checkbox" id="boost" checked="checked" disabled="disabled" /> <label for="boost">Boost palette</label></div>
<div class="be"><input type="checkbox" id="details" /> <label for="details">Details</label></div>
</div>
<hr>
<div class="setting sliders"></div>
</div>
<div class="right col">
<div class="filter sliders"></div>
</div>
<hr>
<div class="togglers">
<div class="btn toggle-help" data-open="Got it!" data-closed="Help"></div>
<div class="btn toggle-controls" data-open="Hide" data-closed="Show"></div>
</div>
</div>
</div>
<div class="help">
<div class="content">
<b>Painting Stoner</b> is a tool for projector guided painting.<br><br>
<b>To change image</b>
<ul>
<li>drag an image file from your computer and drop it in the yellow square (will appear when you drag a file).</li>
<li>paste image directly from clipboard by cmd-v / ctrl-v.</li>
<li>paste an URL to an image by cmd/ctrl-v.</li>
</ul>
<br>
<b>Right-hand side controls</b><br>
Use any controls freely to adjust your image to whatever you need in the situation at hand.<br><br>
<b>Grid</b> provides some additional guidelines for positioning the projection on your canvas.
Despite how the grid appears on browser screen, all the lines of
the grid should be exactly straight horizontally and vertically on your canvas. All circles should
also be round (not oval). This, of course, assuming you don't specifically want to paint a distorted or rotated image.<br><br>
<b>Threshold</b> slider is built combining <i>contrast, brightness</i> and <i>grayscale</i>. Use
<b>either</b> <i>threshold</i> slider <b>or</b> <i>contrast, brightness</i> and <i>grayscale</i> settings separately.<br><br>
<b>Server-side filters</b> (details, posterize, vectorize, outlines) can not be used simultaneously together.<br><br>
<b>Opacity</b> is the base opacity of the image on screen. Use <b>either</b> <i>opacity</i> slider <b>or</b> <i>opacity range</i> slider.
<br>
<br>
<b>Opacity range</b> are two opacity values between which you want to work on.
When animation is paused, you may switch between these two
opacity values by clicking anywhere on page or hitting space bar. This way
you can easily switch between the two opacities while painting when necessary. When
the fading animation is on, it will fade between these two opacity values according
to your <i>fade durations</i>-
<br>
<br>
<b>Fade durations</b> are the times in seconds that it takes for different
stages of the fading animation. <i>Fade</i> time is used also when you use mouse
clicks or spacebar to switch opacity (within opacity range) while animation is paused.
<br>
<br>
</div>
<div class="toggle-help" data-open="Got it!" data-closed="Help"></div>
</div>
<div class="loader">
<div class="content">
<div class="anim"></div>
<div class="msg">Please hold.</div>
</div>
</div>
<script src="persform.js"></script>
<script src="stoner.js"></script>
</body>
</html>