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
// create the text style object
4
textStyle = {fontFamily: "Georgia", fontSize: "15px", color: "green"};
5
6
// set the text
7
stage.text(20,20,"This is my custom text", textStyle);