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 simpleLayer = stage.layer();
4
5
// Creates a text.
6
var redText = acgraph.text(50, 50);
7
redText.parent(simpleLayer);
8
redText.style({fontStyle: 'italic', fontSize: '15px', color: '#F44336'});
9
redText.text('Simple text');