-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_test.html
128 lines (107 loc) · 4.7 KB
/
index_test.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
<html>
<head>
<title>Oscillation Painter</title>
<!-- Latest compiled and minified CSS -->
<link rel="icon" href="favicon.ico">>
<link href='http://fonts.googleapis.com/css?family=Maven+Pro' rel='stylesheet' type='text/css'>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
-->
<!-- Optional theme -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
-->
<!-- Latest compiled and minified JavaScript -->
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
-->
<link rel="stylesheet" type="text/css" href="css/main.css">
<!-- uncomment lines below to include extra p5 libraries -->
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.3/p5.min.js"></script>
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.3/addons/p5.dom.min.js"></script>
<!--<script language="javascript" src="../addons/p5.sound.js"></script>-->
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/themes/ui-darkness/jquery-ui.min.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script>
<script language="javascript" type="text/javascript" src="oscPaint.js"></script>
<
<!-- this line removes any default padding and style. you might only need one of these values set. -->
</head>
<body>
<div id="dialog" title="Controls">
<div class="container">
<div class="row">
<div class="column one">
<div>Radius
<br>
<input id="radius" type="range" min="10" max="500"></div>
<div>Symmetry
<br>
<input id="symmetry" type="range" min="1" max="4"></div>
<div >X Velocity
<br>
<input id="xvel" type="range" min="-10" max="10"></div>
<div >Y Velocity
<br>
<input id="yvel" type="range" min="-10" max="10"></div>
<div >Rotation
<br>
<input id="avel" type="range" min="-20" max="20"></div>
<div > Stroke Weight
<br>
<input id="swt" type="range" min="0" max="100"></div>
<div >Stroke opacity
<br>
<input id="skalpha" type="range" min="0" max="100"></div>
</div>
<div class="column one">
Redraw Background
<br>
<input type="radio" name="redraw" id="redrawOn">on
<input type="radio" name="redraw" id="redrawOff">off
<div >Hue
<br>
<input id="hue" type="range" min="0" max="100"></div>
<div >Saturation
<br>
<input id="sat" type="range" min="0" max="100"></div>
<div >Brightness
<br>
<input id="bri" type="range" min="0" max="100"></div>
<div >Shape
<br>
<input id="shape" type="range" min="0" max="2"></div>
<div >
Opacity
<br>
<input id="alpha" type="range" min="0" max="100"></div>
<div >Chain Length
<br>
<input id="len" type="range" min="0" max="300"></div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="column three">
<div id="canvas-container">
</div>
</div>
</div>
<script>
/*
* jQuery UI Dialog: Change Dialog Position
* http://salman-w.blogspot.com/2013/05/jquery-ui-dialog-examples.html
*/
$(function () {
$("#dialog").dialog({
resizable: true,
width: "50%",
position: {
my: "right top",
at: "right top",
of: window
}
});
$("input").tooltip();
});
</script>
</body>
</html>