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
6
1
var stage = acgraph.create("container");
2
stage.rect(0, 0, stage.width(), stage.height())
3
.fill(["black", "white"], .5, .5, null, 1, 0.23, 0.81);
4
stage.ellipse(stage.width() / 2, stage.height() / 2, stage.width() / 2 - 2, stage.height() / 2 - 2)
5
.stroke("1 green")
6
.fill("green .2");