-
Notifications
You must be signed in to change notification settings - Fork 2
/
template6.html
73 lines (61 loc) · 1.2 KB
/
template6.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="js/jquery.js"></script>
<link href="style/default.min.css" rel="stylesheet">
<link rel="stylesheet" href="style/style.css">
<script src="js/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="js/initTemp.js"></script>
</head>
<body>
<div class="qcanvas_lay">
<canvas id="qcanvas"></canvas>
</div>
<div class="code_lay">
<pre><code class="js">var qcanvas = new Qcanvas(["qcanvas",300,200]);
var polygon = qcanvas.qpolygon.polygon({
r:30,
num:6,
start:[100,100]
})
var shape = qcanvas.qshape.shape({
fillColor:'#999',
opacity:0.3,
points:function(){
return [
[80,10],
[80,50],
[150,70],
[160,20],
]
}
});
</code>
</pre>
</div>
</body>
<script src='Qcanvas.js'></script>
<script>
var qcanvas = new Qcanvas(["qcanvas",300,200]);
var polygon = qcanvas.qpolygon.polygon({
r:30,
num:6,
start:[100,100]
})
var shape = qcanvas.qshape.shape({
fillColor:'#999',
opacity:0.3,
points:function(){
return [
[80,10],
[80,50],
[150,70],
[160,20],
]
}
});
</script>
</html>