HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
// create a stage for the Deathly Hallows symbol
2
var stage = acgraph.create('container');
3
4
// draw the square
5
stage.rect(25, 50, 350, 300);
6
7
// draw the circle
8
stage.circle(200, 250, 100);
9
10
// draw the triangle
11
stage.path()
12
.moveTo(25, 350)
13
.lineTo(200, 50)
14
.lineTo(375, 350)
15
.close();
16
17
// draw the wand in the middle
18
stage.path()
19
.moveTo(200, 50)
20
.lineTo(200, 350);