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
rect_1 = stage.rect(50, 10, 300, 40);
4
rect_1.fill("#80461b");
5
6
rect_2 = stage.rect(350, 10, 300, 40);
7
rect_2.fill("#80461b");
8
9
// add the transformation matrix
10
rect_2.setTransformationMatrix(1, 0.05, 1.5, 0.5, 1, 1);