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
var stage = acgraph.create('container');
2
3
var rectangle = stage.rect(50, 50, 150, 75);
4
rectangle.fill('#90CAF9');
5
6
// Set title.
7
// This call will add <title> node to the stage.
8
// Use inspect element tool to check it.
9
stage.title('Blue rectangle on the stage');