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
2
var stage = acgraph.create("container");
3
4
// draw a circle
5
stage.circle(200, 250, 100);
6
7
// create a square behind the Deathly Hallows symbol
8
stage.rect(25, 50, 350, 300);
9
10
// draw a triangle
11
stage.path().moveTo(25, 350)
12
.lineTo(200, 50)
13
.lineTo(375, 350)
14
.close();
15
16
// draw a wand in the middle
17
stage.path().moveTo(200,50)
18
.lineTo(200,350);