<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
var stage = acgraph.create("container");
var rectangle = stage.rect(10, 30, 140, 100);
rectangle.fill({keys: ["#9E9E9E", "#8BC34A"], angle: 45});
// Gets fill.
var fill = rectangle.fill();
stage.text(10, 5, "The current fill angle is " + fill.angle);