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 rectangle;
4
rectangle = new acgraph.math.Rect(10, 20, 55, 55);
5
6
// Draws a rectangle with rounded inner corners.
7
acgraph.vector.primitives.roundedInnerRect(stage, rectangle, 12);
8
9
rectangle = new acgraph.math.Rect(100, 50, 75, 95);
10
11
// Draws a rectangle with rounded inner corners.
12
acgraph.vector.primitives.roundedInnerRect(stage, rectangle, 10, 20, 5);
13
14
rectangle = new acgraph.math.Rect(210, 20, 75, 55);
15
16
// Draws a rectangle with rounded inner corners.
17
acgraph.vector.primitives.roundedInnerRect(stage, rectangle, 10, 25, 5, 16);