-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (55 loc) · 1.51 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
<!DOCTYPE html>
<html ng-app="gallery">
<head>
<title>Function drawing gallery</title>
<meta charset="utf-8" />
<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/p5/lib/p5.js"></script>
<script src="app.js"></script>
<!-- Bootstrap - Latest compiled and minified CSS -->
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>
My function drawing gallery
</h1>
<div ng-controller="GalleryController">
<div>
<label for="drawingWidth">
Drawing width
</label>
<input id="drawingWidth"
ng-model="drawingWidth"
ng-model-options="{
updateOn: 'default blur',
debounce: { 'default': 1000, 'blur': 0 }
}"
min="50" max="600" step=10
type="number">
<label for="drawingHeight">
Drawing height
</label>
<input id="drawingHeight"
ng-model="drawingHeight"
ng-model-options="{
updateOn: 'default blur',
debounce: { 'default': 1000, 'blur': 0 }
}"
min="50" max="600" step=10
type="number">
</div>
<drawing
ng-repeat="color in colors"
drawing-width="drawingWidth"
drawing-height="drawingHeight"
drawing-function="drawingFunction"
drawing-params="{ color: color }"></drawing>
<drawing
drawing-width="drawingWidth"
drawing-height="drawingHeight"
drawing-function="{ start: drawFractal, prepareCanvas: false }"
drawing-params="{ color: [23, 120, 150] }"></drawing>
</div>
</body>
</html>