使用easeljs如何为弧的endAngle设置动画
我试图通过创建自己的属性pie.setMyAngle = 0.1;
,然后在刻度中增加它,但这没有用
function init() {
var canvas = document.getElementById('easel');
var stage = new createjs.Stage(canvas);
var pie = new createjs.Shape();
pie.setMyAngle = 0.1;
pie.graphics.beginFill("rgba(255,255,255,1)").arc(75, 75, 75, 0, Math.PI * pie.setMyAngle, false).lineTo(75, 75).closePath();
stage.addChild(pie);
createjs.Ticker.addEventListener("tick", handleTick);
function handleTick() {
pie.setMyAngle += 0.1; //not working
pie.x += 1
stage.update();
}
}