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 blueRect = stage.rect(10, 40, 100, 40);
4
blueRect.fill('#90CAF9');
5
6
// Gets visibility flag.
7
var visibilityFlag = blueRect.visible();
8
9
var simpleText = stage.text();
10
simpleText.x(10);
11
simpleText.y(10);
12
simpleText.text('Visibility flag is ' + visibilityFlag);
13
simpleText.fontSize(12);