-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (49 loc) · 1.64 KB
/
index.html
File metadata and controls
49 lines (49 loc) · 1.64 KB
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
<!DOCTYPE html>
<html>
<head>
<script type = "text/javascript" src = "./dest/bundle.js"></script>
</head>
<body>
<div id = "shape-container"></div>
<script type = "text/javascript">
var shapeArr = ['rect','circle'];
var settings = {
container : 'shape-container',
width : 1000,
height : 1000,
events : ['click']
}
var canvas = new CanViz(settings);
for(var i = 0;i<10000;i++){
canvas.drawShape({
type : shapeArr[parseInt(Math.random()*shapeArr.length)],
height:50,
width : 50,
x : parseInt(Math.random()*900),
y : parseInt(Math.random()*900),
strokecolor : "#000fff",
fillcolor : "#000fff"
})
}
/*canvas.drawShape({
type: 'rect',
height:50,
width : 50,
x : 70,
y : 100,
strokecolor : "#0000ff",
fillcolor : "#0000ff"
});
canvas.drawShape({
type: 'circle',
height:50,
width : 50,
x : 100,
y : 300,
strokecolor : "#00ffff",
fillcolor : "#00ffff"
});*/
canvas.render();
</script>
</body>
</html>