-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaint.html
67 lines (63 loc) · 1.85 KB
/
paint.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0>
<meta charset="utf-8"/>
<style> body {padding: 0; margin: 0;} </style>
<script src="./p5/p5.min.js"></script>
<script src="./p5/addons/p5.dom.min.js"></script>
<script src="./p5/addons/p5.sound.min.js"></script>
<script src="sketch.js"></script>
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
</head>
<style>
.slidecontainer {
width: 100%;
}
.slider {
-webkit-appearance: none;
width: 100%;
height: 25px;
background: #d3d3d3;
outline: none;
opacity: 0.7;
-webkit-transition: .2s;
transition: opacity .2s;
}
.slider:hover {
opacity: 1;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
background: #4CAF50;
cursor: pointer;
}
.slider::-moz-range-thumb {
width: 25px;
height: 25px;
background: #4CAF50;
cursor: pointer;
}
</style>
<body>
<div class="slidecontainer">
<input type="range" min="0" max="255" value="50" id="ran_r">
<input type="range" min="0" max="255" value="50" id="ran_b">
<input type="range" min="0" max="255" value="50" id="ran_g">
<svg width="100" height="100">
<circle cx="50" cy="50" r="20" stroke="black" stroke-width="0" fill="red" style="fill:rgb(50,50,50);stroke-width:3;stroke:rgb(0,0,0)" id="rect"/>
</svg>
<input type="range" min="0" max="75" value="50" id="thick">
<select id="modes">
<option value="0">Brush</option>
<option value="1">Line</option>
</select>
</div>
</body>
</html>