Easel.js - draw a ellipse

A simple Easel.js example of drawing a ellipse.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="Tizen Angular.js example"/>
    <title>Tizen Easel.js example</title>
    <script src="js/easeljs-0.8.1.min.js"></script>
</head>
<body>
<div>
  <canvas id="myCanvas" width="500" height="400"></canvas>
</div>
<script>
    var stage = new createjs.Stage("myCanvas");
      var ellipse = new createjs.Shape();
          ellipse.graphics.beginFill("grey").drawEllipse(0, 0, 90, 30);
          ellipse.x = 120;
          ellipse.y = 120;
        stage.addChild(ellipse);
        stage.update();
</script>
</body>
</html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX